Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 3.07 KB

RecognitionConfig.md

File metadata and controls

15 lines (11 loc) · 3.07 KB

FarsavaJsClient.RecognitionConfig

Properties

Name Type Description Notes
audioEncoding AudioEncoding
sampleRateHertz Number Sample rate in Hertz of the audio data sent in all RecognitionAudio messages. Valid values are 8000-48000. 16000 is optimal. For best results, set the sampling rate of the audio source to 16000 Hz. If that is not possible, use the native sample rate of the audio source (instead of re-sampling). This field is required for all audio formats. In Text to Speech endpoint is the synthesis sample rate (in hertz) for audio and Optional. If this is different from the voice's natural sample rate, then the synthesizer will honor this request by converting to the desired sample rate (which might result in worse audio quality), unless the specified sample rate is not supported for the encoding chosen. [default to 16000]
languageCode LanguageCode
maxAlternatives Number Optional Maximum number of recognition hypotheses to be returned. Specifically, the maximum number of SpeechRecognitionAlternative messages within each SpeechRecognitionResult. The server may return fewer than maxAlternatives. Valid values are 1-5. A value of 0 or 1 will return a maximum of one. If omitted, will return a maximum of one. [optional] [default to 1]
profanityFilter Boolean Optional If set to true, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, e.g. "s***". If set to false or omitted, profanities will not be filtered out. [optional] [default to true]
asrModel SpeechRecognitionModel [optional]
languageModel String This is the language model id of a customized trained language model. You can train your own language models and then use them to recognize speech. Refer to languagemodel/train for more info. There are some pretrained language models which you can use. Model Description ------------