Skip to main content
Server path: /lmnt | Type: Application | PCID required: Yes

Tools

ToolDescription
lmnt_delete_voiceDelete voice
lmnt_generate_speechGenerate speech (JSON with metadata)
lmnt_generate_speech_bytesGenerate speech (binary stream)
lmnt_get_accountAccount info
lmnt_get_voiceVoice info
lmnt_list_voicesList voices
lmnt_update_voiceUpdate voice

lmnt_delete_voice

Delete voice Parameters:
ParameterTypeRequiredDefaultDescription
idstringYesThe id of the voice.

lmnt_generate_speech

Generate speech (JSON with metadata) Parameters:
ParameterTypeRequiredDefaultDescription
debugbooleanNoWhen set to true, the generated speech will also be saved to your clip library in the LMNT playground.
formatstringNoThe desired output format of the audio.
languagestringNoThe desired language. Two letter ISO 639-1 code. Defaults to auto language detection.
modelstringNoThe model to use for synthesis.
return_durationsbooleanNoIf set as true, response will contain a durations object.
sample_ratenumberNoThe desired output sample rate in Hz. Defaults to 24000 for all formats except mulaw which defaults to 8000.
seedintegerNoSeed used to specify a different take; defaults to random
temperaturenumberNoInfluences how expressive and emotionally varied the speech becomes. Lower values create more neutral styles, higher values allow more dynamic range.
textstringYesThe text to synthesize; max 5000 characters per request (including spaces).
top_pnumberNoControls the stability of the generated speech. Lower values produce more consistent speech, higher values give more flexibility.
voicestringYesThe voice id of the voice to use; voice ids can be retrieved by calls to List voices or Voice info.

lmnt_generate_speech_bytes

Generate speech (binary stream) Parameters:
ParameterTypeRequiredDefaultDescription
debugbooleanNoWhen set to true, the generated speech will also be saved to your clip library in the LMNT playground.
formatstringNoThe desired output format of the audio.
languagestringNoThe desired language. Two letter ISO 639-1 code. Defaults to auto language detection.
modelstringNoThe model to use for synthesis.
sample_ratenumberNoThe desired output sample rate in Hz. Defaults to 24000 for all formats except mulaw which defaults to 8000.
seedintegerNoSeed used to specify a different take; defaults to random
temperaturenumberNoInfluences how expressive and emotionally varied the speech becomes. Lower values create more neutral styles, higher values allow more dynamic range.
textstringYesThe text to synthesize; max 5000 characters per request (including spaces).
top_pnumberNoControls the stability of the generated speech. Lower values produce more consistent speech, higher values give more flexibility.
voicestringYesThe voice id of the voice to use; voice ids can be retrieved by calls to List voices or Voice info.

lmnt_get_account

Account info

lmnt_get_voice

Voice info Parameters:
ParameterTypeRequiredDefaultDescription
idstringYesThe id of the voice.

lmnt_list_voices

List voices Parameters:
ParameterTypeRequiredDefaultDescription
starredstringNoIf true, only returns voices that you have starred.
ownerstringNoWhich owner’s voices to return. Choose from system, me, or all.

lmnt_update_voice

Update voice Parameters:
ParameterTypeRequiredDefaultDescription
idstringYesThe id of the voice.
descriptionstringNoA description of this voice.
genderstringNoA tag describing the gender of this voice.
namestringNoThe display name for this voice.
starredbooleanNoIf true, adds this voice to your starred list.