de-id / live-streaming-demo

Use D-ID's live streaming API to stream a talking presenter
MIT License
166 stars 147 forks source link

elevenlabs integration error #17

Closed ibrahimarslann59 closed 4 months ago

ibrahimarslann59 commented 1 year ago

I get an error when I try to use the demo with elevenlabs. There is no problem when I use it with Microsoft, but I get errors when using it with elevenlabs

const talkResponse = await fetchWithRetries(
  `${DID_API.url}/talks/streams/${streamId?.current}`,
  {
    method: "POST",
    headers: {
      Authorization: `Basic ${DID_API.key}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      script: {
        type: "text",
        input: message,
        provider: {
          type: "elevenlabs",
          voice_id: "U3YxbJLR6YHQuydI1Itp",
        },

      },
      driver_url: "bank://lively/",
      config: {
        stitch: true,
      },
      session_id: sessionId?.current,
    }),
  }
);

response status code - 400

{"kind":"BadRequestError","description":"script sanitization failed"}

What is wrong?

marcsalesgrid commented 1 year ago

I got the same issue. I talked to d-id support: elevenlabs is not currently supported for the streaming endpoint. They are working on it. No ETA given.

Already5402 commented 11 months ago

audio size too big, cut it up

orgoro commented 4 months ago

Elevenlabs is supported