Bandwidth.Resources.Conferences.Members.Audio

Perform audio-related actions for a specific conference member.

Summary

play(client, conference_id, member_id, audio)

Play audio/speak to only one conference member

Functions

play(client, conference_id, member_id, audio)

Specs:

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

Play audio/speak to only one conference member.

Example:

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

Bandwidth Docs