Skip to content

Commit d7fe050

Browse files
committed
Add stream audio into call building block
1 parent 71c2ce1 commit d7fe050

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)