Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Add more information to the Gather REST API request demos & Docs #27

@dtolb

Description

@dtolb

In order to combine an audio request to the Gather, please use the prompt value of the gather request

This would look something like:

prompt = voice_api.build_sentence(sentence = "Hello from Bandwidth, please press some digits")
gather_id = voice_api.create_call_gather(call_id, prompt = prompt);

Where the voice_api.build_sentence let's you construct the prompt. If you're using audio playback, there is a similar method build_audio_playback that would be used for the prompt instead.

See the transfer docs for how an example could look.

It could also be worth adding the prompt value directly in the param list instead of relying on **kwargs, no real opinion here.

Todo

  • Add example to the Gather documentation for sentence
  • Add example to the Gather documentation for playAudio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions