WASdev / sample.voice.gateway

Lots of helpful samples to help jumpstart development with the IBM Voice Gateway.
Apache License 2.0
62 stars 112 forks source link

SttAdapter not support ssml #137

Closed angelescifuentes closed 6 years ago

angelescifuentes commented 6 years ago

I already install and test google stt with voice gateway. But ssml it is not supported. I already saw all documentation and i can't found anything about ssml .

Can you help me? best

jfmartinez commented 6 years ago

@angelescifuentes I'm assuming you mean the tts-adapter right?

you can use SSML from Watson Assistant as the response for the dialog node

For example:

<speak>Hello World!</speak>

The adapter will interpret it as ssml.

angelescifuentes commented 6 years ago

Dear José Francisco : Sorry I am using tss-adapter with the google credencials, but the adapter can not recognize the ssml .

I already test the same workspace with Watson tss and it work perfect with ssml.

Maybe the problem it is because Watson stt api input can be text or ssml , but Google speech api must define with type of input are you working.

Best regards Ángeles

El El mié, 29 de ago. de 2018 a las 15:03, Jose Francisco Martinez-Rivera < notifications@github.com> escribió:

@angelescifuentes https://github.com/angelescifuentes I'm assuming you mean the tts-adapter right?

you can use SSML from Watson Assistant as the response for the dialog node

For example:

Hello World!

The adapter will interpret it as ssml.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WASdev/sample.voice.gateway/issues/137#issuecomment-417048524, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2dM3luqdjdCIaBpl_13vwJrje7FIayks5uVtd-gaJpZM4WR8Lt .

-- María de los Ángeles Cifuentes Móvil +56 971097634

jfmartinez commented 6 years ago

I used SSML with the en-US voice:

<speak>   Here are <say-as interpret-as="characters">SSML</say-as> samples.   I can pause <break time="3s"/>.   I can speak in cardinals. Your number is <say-as interpret-as="cardinal">10</say-as>.   Or I can speak in ordinals. You are <say-as interpret-as="ordinal">10</say-as> in line.   Or I can even speak in digits. The digits for ten are <say-as interpret-as="characters">10</say-as>.   I can also substitute phrases, like the <sub alias="World Wide Web Consortium">W3C</sub>.   Finally, I can speak a paragraph with two sentences.   <p><s>This is sentence one.</s><s>This is sentence two.</s></p> </speak>

And it is working.

Can you post the SSML you're trying to playback?

angelescifuentes commented 6 years ago

Dear Jose Francisco: I used ssml with es-ES Voice:

Muchas gracias por su tiempo, he dejado registrado el compromiso de pago. Recuerde que también puede realizar el pago a través de nuestra página web con tarjeta visa o master card.

But after saw your ssml, i used tags and now it is working.

On Wed, Aug 29, 2018 at 3:31 PM Jose Francisco Martinez-Rivera < notifications@github.com> wrote:

I used SSML with the en-US voice:

Here are SSML samples. I can pause . I can speak in cardinals. Your number is 10. Or I can speak in ordinals. You are 10 in line. Or I can even speak in digits. The digits for ten are 10. I can also substitute phrases, like the W3C. Finally, I can speak a paragraph with two sentences.

This is sentence one.This is sentence two.

And it is working.

Can you post the SSML you're trying to playback?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WASdev/sample.voice.gateway/issues/137#issuecomment-417058224, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2dMwJC91vH6A4eOPcAieqFIP1EIJfgks5uVt4GgaJpZM4WR8Lt .

jfmartinez commented 6 years ago

Great, glad its working for you. If you hit any more issues, please feel free to re-open the issue.