File tree Expand file tree Collapse file tree
executorch_android/src/main/java/org/pytorch/executorch/extension/asr Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,7 +170,10 @@ if(EXECUTORCH_BUILD_EXTENSION_TRAINING)
170170endif ()
171171
172172if (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
Original file line number Diff line number Diff line change @@ -11,26 +11,25 @@ package org.pytorch.executorch.extension.asr
1111import 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
2120interface 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}
You can’t perform that action at this time.
0 commit comments