Voice Conversion (Streamed JSON)
Authentication
X-Hume-Api-Keystring
API Key authentication via header
Request
This endpoint expects a multipart form containing an optional file.
strip_headers
If enabled, the audio for all the chunks of a generation, once concatenated together, will constitute a single audio file. Otherwise, if disabled, each chunk’s audio will be its own audio file, each with its own headers (if applicable).
audio
Audio file containing speech to be converted to the target voice. Supported formats include MP3, WAV, M4A, and OGG.
context
Utterances to use as context for generating consistent speech style and prosody across multiple requests. These will not be converted to speech output.
ContextGenerationId
OR
ContextUtterances
voice
VoiceId
OR
VoiceName
format
Specifies the output audio file format.
mp3
OR
pcm
OR
wav
include_timestamp_types
The set of timestamp types to include in the response. When used in multipart/form-data, specify each value using bracket notation: include_timestamp_types[0]=word&include_timestamp_types[1]=phoneme. Only supported for Octave 2 requests.
Allowed values:
Response
Successful Response
audio
Metadata for a chunk of generated audio.
type
audio
The generated audio output chunk in the requested format.
audio_format
The generated audio output format.
Allowed values:
chunk_index
The index of the audio chunk in the snippet.
generation_id
The generation ID of the parent snippet that this chunk corresponds to.
is_last_chunk
Whether or not this is the last chunk streamed back from the decoder for one input snippet.
request_id
ID of the initiating request.
snippet_id
The ID of the parent snippet that this chunk corresponds to.
text
The text of the parent snippet that this chunk corresponds to.
transcribed_text
The transcribed text of the generated audio of the parent snippet that this chunk corresponds to. It is only present if instant_mode is set to false.
utterance_index
The index of the utterance in the request that the parent snippet of this chunk corresponds to.
snippet
OR
timestamp
A word or phoneme level timestamp for the generated audio.
type
generation_id
The generation ID of the parent snippet that this chunk corresponds to.
request_id
ID of the initiating request.
snippet_id
The ID of the parent snippet that this chunk corresponds to.
timestamp
A word or phoneme level timestamp for the generated audio.
Errors
422
Unprocessable Entity Error

