Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passthrough of extras to Android API for SpeechToText #523

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rosiaruuretto
Copy link

Enable more customization of the SpeechToText behaviour:

Example: accepting SpeechToText in French, only one max results, and disallowing partial results

$PREFIX/libexec/termux-api SpeechToText --es android.speech.extra.LANGUAGE fr-FR --ei android.speech.extra.MAX_RESULTS 1 --ez android.speech.extra.PARTIAL_RESULTS false

Additionally, the original behaviour where the speech recognition ends on speech end is retained only when "android.speech.extra.PARTIAL_RESULTS" is set to true, otherwise the behaviour is to wait for the final recognition results.

This notably enables customizing the speech recognition language and
partial recognition
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