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

Function send_input

tts/tts-python-quickstart/test_app.py:214–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212 audio_chunks.append(chunk)
213
214 async def send_input():
215 await stream.send_publish(
216 PublishTts(
217 text="Hello",
218 voice=PostedUtteranceVoiceWithName(name="Ava Song", provider="HUME_AI"),
219 )
220 )
221 await stream.send_publish(PublishTts(flush=True))
222 await asyncio.sleep(1.0)
223 await stream.send_publish(PublishTts(close=True))
224
225 await asyncio.gather(handle_messages(), send_input())
226

Calls

no outgoing calls

Tested by

no test coverage detected