Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ccoreilly/LocalSTT
/ functions
Functions
83 in github.com/ccoreilly/LocalSTT
⨍
Functions
83
◇
Types & classes
11
↓ 9 callers
Method
cancel
Cancels recognition. Listeners do not receive final result. Does nothing if recognition is not active. @return true if recognition was actually cance
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:173
↓ 5 callers
Method
results
(Bundle bundle, boolean isFinal)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:119
↓ 5 callers
Method
results
(Bundle bundle, boolean isFinal)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:142
↓ 5 callers
Method
startListening
Starts recognition. Does nothing if recognition is active. @return true if recognition was actually started
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:111
↓ 3 callers
Method
createResultsBundle
(String hypothesis)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:134
↓ 3 callers
Method
createResultsBundle
(String hypothesis)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:155
↓ 3 callers
Method
openAsset
(String asset)
app/src/main/java/cat/oreilly/localstt/Assets.java:174
↓ 3 callers
Method
stop
Stops recognition. All listeners should receive final result if there is any. Does nothing if recognition is not active. @return true if recognition
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:159
↓ 2 callers
Method
createMessage
(int type, String str)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:83
↓ 2 callers
Method
error
(int errorCode)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:150
↓ 2 callers
Method
error
(int errorCode)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:171
↓ 2 callers
Method
execute
(RecognitionListener listener)
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:284
↓ 2 callers
Method
readLines
(InputStream source)
app/src/main/java/cat/oreilly/localstt/Assets.java:165
↓ 2 callers
Method
showError
(String msg)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:96
↓ 2 callers
Method
shutdown
Shutdown the recognizer and release the recorder
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:183
↓ 2 callers
Method
stopRecognizerThread
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:137
↓ 2 callers
Method
syncAssets
Performs the sync of assets in the application and on the external storage @return The folder on external storage with data @throws IOException
app/src/main/java/cat/oreilly/localstt/Assets.java:233
↓ 2 callers
Method
toast
(String message)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:92
↓ 1 callers
Method
addListener
Adds listener.
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:91
↓ 1 callers
Method
beginningOfSpeech
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:142
↓ 1 callers
Method
beginningOfSpeech
()
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:163
↓ 1 callers
Method
checkPermission
()
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:187
↓ 1 callers
Method
copy
Copies raw asset resource to external storage of the device. @param path path of the asset to copy @throws IOException if an I
app/src/main/java/cat/oreilly/localstt/Assets.java:204
↓ 1 callers
Method
execute
(RecognitionListener listener)
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:272
↓ 1 callers
Method
getExternalItems
Returns path to hash mappings for the previously copied files. This method can be used to find out assets which must be updated.
app/src/main/java/cat/oreilly/localstt/Assets.java:129
↓ 1 callers
Method
getItems
Returns the map of asset paths to the files checksums. @return path to the root of resources directory on external storage @throws IOException
app/src/main/java/cat/oreilly/localstt/Assets.java:116
↓ 1 callers
Method
getPendingIntent
(Bundle extras)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:252
↓ 1 callers
Method
onError
(int i)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:139
↓ 1 callers
Method
onPartialResult
(String hypothesis)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:204
↓ 1 callers
Method
onResult
(String hypothesis)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:182
↓ 1 callers
Method
onTimeout
()
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:221
↓ 1 callers
Method
readyForSpeech
(Bundle bundle)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:111
↓ 1 callers
Method
readyForSpeech
(Bundle bundle)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:134
↓ 1 callers
Method
returnResults
(ArrayList<String> results)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:204
↓ 1 callers
Method
runRecognizerSetup
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:62
↓ 1 callers
Method
runRecognizerSetup
()
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:71
↓ 1 callers
Method
setResultIntent
(final Handler handler, List<String> matches)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:246
↓ 1 callers
Method
setupRecognizer
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:100
↓ 1 callers
Method
setupRecognizer
()
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:113
↓ 1 callers
Method
updateItemList
Saves the list of synchronized items. The list is stored as a two-column space-separated list of items in a text file. The file is located at the root
app/src/main/java/cat/oreilly/localstt/Assets.java:188
Method
Assets
Creates new instance for asset synchronization @param context application context @throws IOException if the directory does n
app/src/main/java/cat/oreilly/localstt/Assets.java:78
Method
DeepSpeechService
Creates speech service. Service holds the AudioRecord object, so you need to call {@link release} in order to properly finalize it. @throws IOExcepti
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:69
Method
OnErrorEvent
(Exception exception)
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:296
Method
RecognizerThread
(int timeout)
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:195
Method
ResultEvent
(String hypothesis, boolean finalResult)
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:279
Method
SimpleMessageHandler
(SpeechActivity c)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:60
Method
execute
(RecognitionListener listener)
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:300
Method
execute
(RecognitionListener listener)
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:307
Method
getExternalDir
Returns destination path on external storage where assets are copied. @return path to application directory or null if it does not exists
app/src/main/java/cat/oreilly/localstt/Assets.java:105
Method
getItemsToCopy
In case you want to create more smart sync implementation, this method returns the list of items which must be synchronized.
app/src/main/java/cat/oreilly/localstt/Assets.java:147
Method
handleMessage
(Message msg)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:64
Method
onBeginningOfSpeech
()
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:118
Method
onBufferReceived
(byte[] bytes)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:129
Method
onCancel
(Callback callback)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:50
Method
onCancel
(Callback callback)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:59
Method
onCreate
(final Bundle savedInstanceState)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:100
Method
onDestroy
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:90
Method
onDestroy
()
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:103
Method
onDestroy
()
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:180
Method
onEndOfSpeech
()
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:134
Method
onError
(Exception e)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:183
Method
onError
(Exception e)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:215
Method
onEvent
(int i, Bundle bundle)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:161
Method
onFinalResult
(String hypothesis)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:167
Method
onFinalResult
(String hypothesis)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:193
Method
onPartialResult
(String hypothesis)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:175
Method
onPartialResults
(Bundle bundle)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:153
Method
onReadyForSpeech
(Bundle bundle)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:113
Method
onRequestPermissionsResult
(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:194
Method
onResult
(String hypothesis)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:159
Method
onResults
(Bundle bundle)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:144
Method
onRmsChanged
(float v)
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:124
Method
onStart
()
app/src/main/java/cat/oreilly/localstt/SpeechActivity.java:169
Method
onStartListening
(Intent intent, Callback callback)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:43
Method
onStartListening
(Intent intent, Callback callback)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:52
Method
onStopListening
(Callback callback)
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:56
Method
onStopListening
(Callback callback)
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:65
Method
onTimeout
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:189
Method
removeListener
Removes listener.
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:100
Method
run
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:207
Method
run
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechService.java:266
Method
run
()
app/src/main/java/cat/oreilly/localstt/DeepSpeechRecognitionService.java:64
Method
run
()
app/src/main/java/cat/oreilly/localstt/VoskRecognitionService.java:73