Rate this page:

Media players

Voice Avatar in Voximplant can use all types of available media players to synthesize and play speech to customers, including sequence player.

Contents

Copy URL

Single-player approach

Copy URL

The default approach explained in the avatar scenarios article, both for avatar common states and avatar form states, uses single player approach, allowing developers to generate a single phrase per response.

Single-player example

Single-player example

You can specify custom parameters for voice and media players via channelParameters. Learn more about this in the avatar scenarios article.

Sequence player approach

Copy URL

With single-player approach, you can play only one synthesized text phrase or a pre-recorded message per response. If you want to generate multiple phrases per response, including text synthesis with different parameters (such as voice, pitch, etc.) and pre-recorded media files, you can use our sequence player.

Using a sequence player with the avatar is easy. You need to specify the sequence player segments in the avatar state or form state, and the avatar logic automatically plays them all.

Sequence player example

Sequence player example

Playback interruption

Copy URL

You can set up playback interruption for avatar responses. By default, when an avatar plays its response, a customer cannot interrupt. However, depending on the type of player, you can allow customers to interrupt.

If you are using the single URL or TTS player, you need to specify the interruptableAfter parameter. Set it to true to allow customers to interrupt.

If you are using the sequence player, you need to specify the allowPlaybackInterruption parameter the same way. Take a look at how the playback interruption is processed.

Playback interruption