Vonage / vonage-node-code-snippets

NodeJS code examples for using Vonage
MIT License
70 stars 78 forks source link

[Question]: How to initiate an outbound call with phone number and text-to-speech in chinese? Not by call leg UUID #158

Open foongef-kewdoo opened 1 month ago

foongef-kewdoo commented 1 month ago

Node Version

18.x

Platform

Linux, Mac (intel)

SDK Version

3

Code Sample

const resp = await vonage.voice .playTTS(params.phone, { action: 'talk', text: '你好', language: 'cmn-CN', }) .then((resp) => console.log(resp)) .catch((err) => console.error(err));

Expected Behavior

User receive call in Chinese voice

Actual Behavior

Only able to receive call in english only

manchuck commented 1 month ago

@foongef-kewdoo vonage.voice.playTTS does not create the call. If you follow the example here are you able to get the call started?