When the function is executed, the recognition window will open and you will get a specified time during which PictoBlox will record whatever you say. Once recorded, the speech will be converted to the text of the language you spoke in and saved locally.
- Home
- Python Functions
- analysespeech()
analysespeech()
Function Definition: analysespeech(time = 2, language = "en-US")
- Python Library: Speech Recognition
- Library Import: sr = SpeechRecognition()
- Mode: Stage Mode
Description
Parameters
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
time | int | The record time in seconds. | 2-10 | 2 |
language | string | The language in which speech needs to be analysed. | "ar-AE", "ca-ES", "da-DK", "da-de", "en-GB", "en-US", "es-ES", "fi-FI", "fr-FR", "gu-IN", "hi-IN", "it-IT", "ja-JP", "ko-KR", "mr-IN", "nb-NO", "nl-NL", "pl-PL", "pt-PT", "ru-RU", "sv-SE", "ta-IN", "te-IN", "th-TH", "tr-TR", "zh-CN", "zh-HK" | "en-US" |
Example
It seems we can't find what you're looking for.
Table of Contents