MCPcopy Create free account
hub / github.com/HumeAI/hume-api-examples / example1

Function example1

tts/tts-python-quickstart/app.py:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45async def example1():
46 print("Example 1: Synthesizing audio using a pre-existing voice...")
47
48 stream = hume.tts.synthesize_json_streaming(**example1_request_params)
49
50 await play_audio_streaming(base64.b64decode(chunk.audio) async for chunk in stream if chunk.type == "audio")
51
52
53# Example 2: Voice Design.

Callers 2

mainFunction · 0.70

Calls

no outgoing calls

Tested by 1