Files
freeswitch-modules/mod_elevenlabs_tts
Hoan Luu Huu 45ecf151c3 Delete tts tmp file if playback_start event has not been sent (#68)
* Delete tts tmp file if playback_start event has not been sent

Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>

* Delete tts tmp file if playback_start event has not been sent

Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>

* wip

Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>

---------

Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>
2024-05-26 09:29:05 -04:00
..

mod_google_tts

A Freeswitch module that allows Google Text-to-Speech API to be used as a tts provider.

API

Commands

This freeswitch module does not add any new commands, per se. Rather, it integrates into the Freeswitch TTS interface such that it is invoked when an application uses the mod_dptools speak command with a tts engine of google_tts and a voice equal to the language code associated to one of the supported Wavenet voices

Events

None.

Usage

When using drachtio-fsrmf, you can access this functionality via the speak method on the 'endpoint' object.

ep.speak({
    ttsEngine: 'google_tts',
    voice: 'en-GB-Wavenet-A',
    text: 'This aggression will not stand'
  });

Examples

google_tts.js