Skip to content

Commit 4c96e12

Browse files
authored
Merge pull request #24 from nexmo-community/play-audio-into-call
Add stream audio into call building block
2 parents fe9c365 + d7fe050 commit 4c96e12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

voice/play-audio-stream-into-call.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import nexmo
2+
3+
client = nexmo.Client(
4+
application_id=APPLICATION_ID,
5+
private_key=APPLICATION_PRIVATE_KEY_PATH
6+
)
7+
8+
stream_url = 'https://nexmo-community.github.io/ncco-examples/assets/voice_api_audio_streaming.mp3'
9+
client.send_audio(NEXMO_CALL_UUID, stream_url=stream_url)

0 commit comments

Comments
 (0)