We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 486b4e8 + 3da3b51 commit 8d906f8Copy full SHA for 8d906f8
docs/voice/quickstart.md
@@ -100,10 +100,13 @@ pipeline = VoicePipeline(workflow=SingleAgentVoiceWorkflow(agent))
100
```python
101
import numpy as np
102
import sounddevice as sd
103
+from agents.voice import AudioInput
104
105
# For simplicity, we'll just create 3 seconds of silence
106
# In reality, you'd get microphone data
107
audio = np.zeros(24000 * 3, dtype=np.int16)
108
+audio_input = AudioInput(buffer=buffer)
109
+
110
result = await pipeline.run(audio_input)
111
112
# Create an audio player using `sounddevice`
0 commit comments