Bandwidth.Resources.Conferences.Audio

Perform audio-related actions for a conference.

Summary

play(client, conference_id, audio)

Play an audio file or speak a sentence in a phone call

Functions

play(client, conference_id, audio)

Specs:

  • play(Client.t, binary, Map.t) :: Client.response

Play an audio file or speak a sentence in a phone call.

Example:

audio = %{ sentence: "Hello Bandwidth API user" }
case Bandwidth.Resources.Conferences.Audio.play(client, "some-conference-id", audio) do
  {:ok, {200, _, _}} -> IO.puts "Audio played"
  {:error, reason}   -> IO.puts "Error: #{reason}"
end

Bandwidth Docs