stt_transcribe_from_mic()¶
This method transcribe speech ifrom microphone to text.
Reference¶
Arguments¶
Arguments |
Type |
Default value |
Description |
|---|---|---|---|
microphone |
|
Microphone to use in recording. |
|
voice_detector |
|
Voice detector to use, if is not specified a time to finish record will be used. |
|
language |
|
Language to use. |
|
timeout |
|
Timeout to finish the recording, if a voice detector is setted this timeout will be ignored. |
|
callback_feedback |
|
Callback to be executed when a feedback arrives. |
|
callback_feedback_async |
|
An asynchronous callback to be executed when a feedback arrives (if callback_async is defined, callback is ignored). Allows a callback that can use ‘await’, which is useful for non-blocking operations and concurrent tasks. |
|
callback_finish |
|
Callback to be executed when the method finish. |
|
callback_finish_async |
|
An asynchronous callback to be executed when a method finish (if callback_async is defined, callback is ignored). Allows a callback that can use ‘await’, which is useful for non-blocking operations and concurrent tasks. |
|
wait |
|
|
If true the method is executed in clocking mode |
Important note!
If callback_async is defined, callback is ignored.
Return¶
Type |
Description |
|---|---|
|
String with the transcription. |
Exceptions¶
None
See the complete list of NLP exceptions.