Hey guys, anyone got this tag working
# general-english
v
Hey guys, anyone got this tag working with elevenlabs and ssml? I got the ssml enabled and the -- pauses work ok but this break time not at all. Do you have to wrap certain type of text around it or should it work on any context?
r
Hey @vainoklement , have you been able to use the 11labs markup at all?
s
Hey @vainoklement you can use the ssml 11labs tags, here's how:-
Copy code
json
  "voice": {
    "provider": "11labs",
    "chunkPlan": {
      "formatPlan": {
        "replacements": [
          {
            "type": "exact",
            "key": "<break time=3s />",
            "value": "<break time=\"3s\" />"
          }
        ]
      }
    }
What happens is this replaces the key with value at the end of voice formatting so you still get to use
Copy code
<break time="1.0s" />
Do let me know how it goes @Ricardo Basto and @vainoklement
r
Hey @Shubham Bajaj, that works! Thanks for pointing out this (new?) chunkPlan property, I wouldn't have found it since it's not in the
@vapi-ai/web
npm package yet One thing I noticed is that when you use "exact" it replaces only the first occurence of the key. It's like someone forgot to add the /g flag to the regex, or used
.replace
instead of
.replaceAll
But when using
type: "regex"
it is replacing globally.
s
Hey @Ricardo Basto now you can use 11labs prompting without replacement plan because we have disabled voice formatting for quotes and dashes.
r
Ok cool, and what is the role of the
enableSsmlParsing
option, does that still affect anything?
s
No it was because of voice formatting, nothing related to ssml.
5 Views