Discussions

Ask a Question
Back to All

IMPORTANT: Can I use driver_expression in talk stream mode?

const talkResponse = await fetch(
      `${DID_API.url}/talks/streams/${streamId}`,
      {
        method: "POST",
        headers: {
          Authorization: `Basic ${DID_API.key}`,
          "Content-Type": "application/json",
        },
        body: JSON.stringify({
          script: {
            type: 'text',
            subtitles: 'false',
            provider: {
              type: 'microsoft',
              voice_id: 'en-US-JennyNeural',
            },
            ssml: 'false',
            input: responseFromOpenAI_message, //send the openAIResponse to D-id
          },
          config: {
            fluent: true,
            pad_audio: 1,
            driver_expressions: {
              expressions: [
                {expression: 'happy', start_frame: 0, intensity: 1}],
              // transition_frames: 10
            },
            stitch: true,
            sharpen: false,
            
          },
          session_id: sessionId,
        }),
      }
    );

But I couldn't get the desired video(happy). Video was always natural mood.
Is there any solution for this?
Looking forward to your response.