Skip to content

Always call _handleAudioBufferCreation() - #1

Open
davidcornewell wants to merge 5 commits into
aitorbajo:masterfrom
davidcornewell:master
Open

Always call _handleAudioBufferCreation()#1
davidcornewell wants to merge 5 commits into
aitorbajo:masterfrom
davidcornewell:master

Conversation

@davidcornewell

Copy link
Copy Markdown

Call _handleAudioBufferCreation() even if the audio buffer is empty so that it will call _callSpeechStatusCB(STATUS.SPEECH_MIN_LENGTH); This will make a zero length recording trigger the minimum length event by calling _callSpeechStatusCB(STATUS.SPEECH_MIN_LENGTH);

Call _handleAudioBufferCreation()  even if the audio buffer is empty so that it will call _callSpeechStatusCB(STATUS.SPEECH_MIN_LENGTH); This will make a zero length recording trigger the minimum length event.
Minified version of source that removed check for _currentSpeechHistory.length > 0.
Whether using user media or cordova we want the call back.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant