From d7fe050a949a0e4ecf6759fa80a0fcfa5714673d Mon Sep 17 00:00:00 2001 From: Aaron Bassett Date: Wed, 2 May 2018 16:49:33 +0200 Subject: [PATCH] Add stream audio into call building block --- voice/play-audio-stream-into-call.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 voice/play-audio-stream-into-call.py diff --git a/voice/play-audio-stream-into-call.py b/voice/play-audio-stream-into-call.py new file mode 100644 index 0000000..f550d68 --- /dev/null +++ b/voice/play-audio-stream-into-call.py @@ -0,0 +1,9 @@ +import nexmo + +client = nexmo.Client( + application_id=APPLICATION_ID, + private_key=APPLICATION_PRIVATE_KEY_PATH +) + +stream_url = 'https://nexmo-community.github.io/ncco-examples/assets/voice_api_audio_streaming.mp3' +client.send_audio(NEXMO_CALL_UUID, stream_url=stream_url)