![]() Use a voice that matches the language of the input text. The service bases its understanding of the language for the input text on the specified voice. Synthesizes text to audio that is spoken in the specified voice. If you omit the voice parameter, the service uses the US English en-US_MichaelV3Voice by default.įor IBM Cloud Pak for Data, if you do not install the en-US_MichaelV3Voice, you must either specify a voice with the request or specify a new default voice for your installation of the service. " The request succeeds despite the warnings. reason) įinalAudio = new Blob(audioParts. The service currently accepts a single message per WebSocket connection. For Text to Speech for IBM Cloud Pak for Data, if you do not install the en-US_MichaelV3Voice, you must either specify a voice with the request or specify a new default voice for your installation of the service.Īllowable values: The default voice is en-US_MichaelV3Voice. */* - Specifies the default audio format: audio/ogg codecs=opus.audio/webm codecs=vorbis - You can optionally specify the rate of the audio.audio/webm codecs=opus - The service returns audio with a sampling rate of 48,000 Hz.The service returns audio with a sampling rate of 48,000 Hz. audio/webm - The service returns the audio in the opus codec.audio/wav - You can optionally specify the rate of the audio.audio/ogg codecs=vorbis - You can optionally specify the rate of the audio.If you specify a different value, the service returns an error. audio/ogg codecs=opus - You can optionally specify the rate of the audio.You can optionally specify the rate of the audio. audio/ogg - The service returns the audio in the vorbis codec.audio/mulaw - You must specify the rate of the audio.audio/mpeg - You can optionally specify the rate of the audio.audio/mp3 - You can optionally specify the rate of the audio.You can optionally specify the endianness of the audio. audio/l16 - You must specify the rate of the audio.audio/flac - You can optionally specify the rate of the audio.audio/basic - The service returns audio with a sampling rate of 8000 Hz.audio/alaw - You must specify the rate of the audio.Specify a value of -1 to set the inactivity timeout to infinity. You can override this timeout by specifying a different value for the inactivity_timeout parameter. The timeout is useful, for example, for terminating a session when a user simply walks away from a live microphone. The service uses the inactivity timeout to ensure that a session remains active. Your application should also recover gracefully from closed connections.Īn inactivity timeout (HTTP status code 400) occurs when the service is receiving audio from the client but it detects silence (no speech) for 30 seconds. Ideally, you would establish a session just before you obtain audio for transcription and maintain it by sending audio at a rate that is close to real time. ![]() (You must also set the inactivity_timeout parameter to -1, as described in the next bullet.) You are charged for the duration of any data that you send to the service, including the silence that you send to extend a session. If the client has sent all data, the service can take more than 30 seconds to generate a response in this case, the request does not time out.įor both WebSocket connections and HTTP sessions, you can keep a session active by sending any audio data, including just silence, before the 30-second session timeout occurs. The latter condition occurs only if the service receives no data from the client for 30 seconds and it has not yet received the last chunk of data. It also occurs when a session is active but no request is received from the client for 30 seconds. If one of these timeouts lapses, the service closes the connection.Ī session timeout (HTTP status code 408) occurs when a client starts a session but the service receives no audio for 30 seconds. To preserve resources when you stream audio data, the service enforces various timeouts. This is probably a timeout from the Speech to Text service: Hi Is there any more information you could provide?
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |