Bandwidth.Resources.Bridges.Audio
Perform audio-related actions for a specific bridge.
Summary↑
play(client, bridge_id, audio) | Play an audio file or speak a sentence in a bridge |
Functions
Specs:
- play(Client.t, binary, Map.t) :: Client.response
Play an audio file or speak a sentence in a bridge.
Example:
audio = %{ sentence: "Hello Bandwidth API user" }
case Bandwidth.Resources.Bridges.Audio.play(client, "some-bridge-id", audio) do
{:ok, {200, _, _}} -> IO.puts "Audio played"
{:error, reason} -> IO.puts "Error: #{reason}"
end