Created
April 14, 2021 12:44
-
-
Save arjan/bbddcf9e874e5af2be6e6683c726ad83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ | |
▶ curl -X POST https://bsqd.me/phone/webhook/736e85d2-8654-4ec5-ac53-2893e1f2b2fa/31641322599/call1 -d '{}' -H 'Content-type: application/json' | |
{"is_final":false,"locale":"en","ssml":"<speak><s>Hello this is a bot <break time=\"1500ms\"/> </s><s>What is your name?</s></speak>","tts":null,"voice":{"gender":"FEMALE","locale":"en","name":"en-GB-Wavenet-A","preview_url":"https://cloud.google.com/text-to-speech/docs/audio/en-GB-Wavenet-A.wav","type":"google"}}% | |
~ | |
▶ | |
~ | |
▶ | |
~ | |
▶ | |
~ | |
▶ | |
~ | |
▶ | |
~ | |
▶ curl -X POST https://bsqd.me/phone/webhook/736e85d2-8654-4ec5-ac53-2893e1f2b2fa/31641322599/call1 -d '{}' -H 'Content-type: application/json' | |
{"message":"collector_timeout"}% | |
~ | |
▶ | |
~ | |
▶ curl -X POST https://bsqd.me/phone/webhook/736e85d2-8654-4ec5-ac53-2893e1f2b2fa/31641322599/call2 -d '{}' -H 'Content-type: application/json' | |
{"is_final":false,"locale":"en","ssml":"<speak><s>Hello this is a bot <break time=\"1500ms\"/> </s><s>What is your name?</s></speak>","tts":null,"voice":{"gender":"FEMALE","locale":"en","name":"en-GB-Wavenet-A","preview_url":"https://cloud.google.com/text-to-speech/docs/audio/en-GB-Wavenet-A.wav","type":"google"}}% | |
~ | |
▶ curl -X POST https://bsqd.me/phone/webhook/736e85d2-8654-4ec5-ac53-2893e1f2b2fa/31641322599/call3 -d '{}' -H 'Content-type: application/json' | json | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 317 100 315 100 2 370 2 0:00:01 --:--:-- 0:00:01 372 | |
{ | |
"is_final": false, | |
"locale": "en", | |
"ssml": "<speak><s>Hello this is a bot <break time=\"1500ms\"/> </s><s>What is your name?</s></speak>", | |
"tts": null, | |
"voice": { | |
"gender": "FEMALE", | |
"locale": "en", | |
"name": "en-GB-Wavenet-A", | |
"preview_url": "https://cloud.google.com/text-to-speech/docs/audio/en-GB-Wavenet-A.wav", | |
"type": "google" | |
} | |
} | |
~ | |
▶ curl -X POST https://bsqd.me/phone/webhook/736e85d2-8654-4ec5-ac53-2893e1f2b2fa/31641322599/call3 -d '{}' -H 'Content-type: application/json' | json | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 33 100 31 0 2 5 0 0:00:06 0:00:05 0:00:01 7 | |
{ | |
"message": "collector_timeout" | |
} | |
~ | |
▶ curl -X POST https://bsqd.me/phone/webhook/736e85d2-8654-4ec5-ac53-2893e1f2b2fa/31641322599/call3 -d '{ | |
"action": { | |
"type": "message", | |
"payload": { | |
"text": "Hello my name is John", | |
"input_type": "voice" | |
} | |
} | |
}' -H 'Content-type: application/json' | json | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 432 100 298 100 134 543 244 --:--:-- --:--:-- --:--:-- 789 | |
{ | |
"is_final": true, | |
"locale": "en", | |
"ssml": "<speak><s>Goodbye,<break time=\"200ms\"/> Hello my name is John</s></speak>", | |
"tts": null, | |
"voice": { | |
"gender": "FEMALE", | |
"locale": "en", | |
"name": "en-GB-Wavenet-A", | |
"preview_url": "https://cloud.google.com/text-to-speech/docs/audio/en-GB-Wavenet-A.wav", | |
"type": "google" | |
} | |
} | |
~ | |
▶ curl -X POST https://bsqd.me/phone/webhook/736e85d2-8654-4ec5-ac53-2893e1f2b2fa/31641322599/call4 -d '{}' -H 'Content-type: application/json' | |
{"is_final":false,"locale":"en","ssml":"<speak><s>Hello this is a bot <break time=\"1500ms\"/> </s><s>What is your name?</s></speak>","tts":null,"voice":{"gender":"FEMALE","locale":"en","name":"en-GB-Wavenet-A","preview_url":"https://cloud.google.com/text-to-speech/docs/audio/en-GB-Wavenet-A.wav","type":"google"}}% | |
~ | |
▶ curl -X POST https://bsqd.me/phone/webhook/736e85d2-8654-4ec5-ac53-2893e1f2b2fa/31641322599/call5 -d '{"tts":true}' -H 'Content-type: application/json' | |
{"is_final":false,"locale":"en","ssml":"<speak><s><mark name=\"a0\"/>Hello this is a bot <break time=\"1500ms\"/> </s><s><mark name=\"a1\"/>What is your name?</s></speak>","tts":null,"voice":{"gender":"FEMALE","locale":"en","name":"en-GB-Wavenet-A","preview_url":"https://cloud.google.com/text-to-speech/docs/audio/en-GB-Wavenet-A.wav","type":"google"}}% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment