Snippets

Furhat Robotics Use voice-specific voice-gestures from other voices

Created by Ludvig Linse
<var name="defaultVoice" type="String" value="'Liam'"/>


<state id="VoiceGesture"> <!-- State that will change to a specific voice, perform a voice-gesture, and then change back to the default voice -->
    <param name="gesture" type="String"/>
    <onentry>
        <send event="action.voice" p:name="'william'"/>
        <agent:say><expr>gesture</expr></agent:say>
        <send event="action.voice" p:name="defaultVoice"/>
        <return/>
    </onentry>
</state>

<state id="Start">
    <onentry>
        <agent:say>Hello there</agent:say>
        <call state="VoiceGesture" p:gesture="'GESTURE_LAUGH_4'"/>            
        <agent:say>Goodbye</agent:say>
    </onentry>
</state>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.