Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Atharv-Attri authored Oct 7, 2020
1 parent 80a96db commit c6ed388
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,16 +232,16 @@ voice.send_speech(response['uuid'], text='Hello from vonage')
### Stop sending a synthesized speech message to a call

```python
>>> from vonage import Client, Voice
>>> client = Client(application_id=APPLICATION_ID, private_key=APPLICATION_ID)
>>> voice = Voice(client)
>>> response = voice.create_call({
from vonage import Client, Voice
client = Client(application_id=APPLICATION_ID, private_key=APPLICATION_ID)
voice = Voice(client)
response = voice.create_call({
'to': [{'type': 'phone', 'number': '14843331234'}],
'from': {'type': 'phone', 'number': '14843335555'},
'answer_url': ['https://example.com/answer']
})
>>> voice.send_speech(response['uuid'], text='Hello from vonage')
>>> voice.stop_speech(response['uuid'])
voice.send_speech(response['uuid'], text='Hello from vonage')
voice.stop_speech(response['uuid'])
```

### Send DTMF tones to a call
Expand Down

0 comments on commit c6ed388

Please sign in to comment.