Skip to content

Commit 72b2dfa

Browse files
committed
Lint
1 parent b6c4488 commit 72b2dfa

5 files changed

Lines changed: 216 additions & 231 deletions

File tree

extension/android/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ if(EXECUTORCH_BUILD_EXTENSION_TRAINING)
170170
endif()
171171

172172
if(EXECUTORCH_BUILD_LLAMA_JNI)
173-
target_sources(executorch_jni PRIVATE jni/jni_layer_llama.cpp jni/jni_layer_asr.cpp jni/log.cpp)
173+
target_sources(
174+
executorch_jni PRIVATE jni/jni_layer_llama.cpp jni/jni_layer_asr.cpp
175+
jni/log.cpp
176+
)
174177
list(APPEND link_libraries extension_llm_runner extension_asr_runner)
175178
target_compile_definitions(executorch_jni PUBLIC EXECUTORCH_BUILD_LLAMA_JNI=1)
176179

extension/android/executorch_android/src/main/java/org/pytorch/executorch/extension/asr/AsrCallback.kt

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,25 @@ package org.pytorch.executorch.extension.asr
1111
import org.pytorch.executorch.annotations.Experimental
1212

1313
/**
14-
* Callback interface for ASR (Automatic Speech Recognition) module.
15-
* Users can implement this interface to receive the transcribed tokens
16-
* and completion notification.
14+
* Callback interface for ASR (Automatic Speech Recognition) module. Users can implement this
15+
* interface to receive the transcribed tokens and completion notification.
1716
*
1817
* Warning: These APIs are experimental and subject to change without notice
1918
*/
2019
@Experimental
2120
interface AsrCallback {
22-
/**
23-
* Called when a new token is available from JNI.
24-
* Users will keep getting onToken() invocations until transcription finishes.
25-
*
26-
* @param token The decoded text token
27-
*/
28-
fun onToken(token: String)
21+
/**
22+
* Called when a new token is available from JNI. Users will keep getting onToken() invocations
23+
* until transcription finishes.
24+
*
25+
* @param token The decoded text token
26+
*/
27+
fun onToken(token: String)
2928

30-
/**
31-
* Called when transcription is complete.
32-
*
33-
* @param transcription The complete transcription (may be empty if tokens were streamed)
34-
*/
35-
fun onComplete(transcription: String) {}
29+
/**
30+
* Called when transcription is complete.
31+
*
32+
* @param transcription The complete transcription (may be empty if tokens were streamed)
33+
*/
34+
fun onComplete(transcription: String) {}
3635
}

0 commit comments

Comments
 (0)