Adjust the pitch
The pitch parameter shifts the voice lower (negative values) or higher (positive values). 0.0 leaves the voice unchanged.
Example
WebSocket example
pitch is set in the configure message and applies to every convert call that follows. The Python SDK names the language argument target_language_code; it is sent as language_code.
What changes in the output
Negative values make the voice deeper and positive values make it sharper.
Start with small shifts and listen before moving toward the limits. Keep the same pitch across a conversation so the voice stays consistent. Choosing a different speaker is usually a better way to get a very different voice.
Common errors
Out-of-range values are rejected with HTTP 400 on REST. On WebSocket, the error arrives as a JSON message with code 422 or 400 instead.
On WebSocket, send a new configure message to change pitch mid-session. Text still in the buffer is flushed first, then the new settings apply.