Closed tapz closed 1 month ago
@tapz I bet there was a bad build of this version While I was out. v3.14 should have this resolved
@manchuck Still seeing this with 3.14.2
TypeError: instanceof called on an object with an invalid prototype property.
at <anonymous> (/home/bun/node_modules/@vonage/server-client/dist/client.js:225:34)
at processTicksAndRejections (:12:39)
@tapz You are missing the properties for the text and language. The call should look like:
await vonage.voice.playTTS(
callId,
{
action: 'talk',
text: 'Hello',
language: 'fi-FI',
style: 0,
loop: 1,
premium: true
}
);
@manchuck Actually my sample is incorrect. I give the values like this:
{
action: 'talk',
text,
language,
style: 0,
loop: 1,
premium: true
}
But I'll change it to send a request directly to the api without the library. Maybe get some error code.
Node Version
20.x
Platform
Docker Container
SDK Version
3.13.0
Code Sample
Expected Behavior
Talks to the call
Actual Behavior