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

Function fast_sleep

tts/tts-python-quickstart/test_app.py:101–102  ·  view source on GitHub ↗
(seconds)

Source from the content-addressed store, hash-verified

99 original_sleep = asyncio.sleep
100
101 async def fast_sleep(seconds):
102 await original_sleep(0.5 if seconds >= 1 else seconds)
103
104 with patch("app.play_audio_streaming", side_effect=mock_play):
105 with patch("app.asyncio.sleep", side_effect=fast_sleep):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected