Skip to content

Commit

Permalink
mig: update model in pronounciation dic
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes committed Dec 19, 2024
1 parent a9a6ecf commit 4ca3ada
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fern/developer-guides/how-to-use-pronunciation-dictionaries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ We'll start by adding rules to the pronunciation dictionary from a file and comp
If you want to jump straight to the finished repo you can find it [here](https://github.com/elevenlabs/elevenlabs-examples/tree/main/examples/pronunciation-dictionaries/python)

<Info>
Alias tags are supported by all models excluding `eleven_turbo_v2_5`. Phoneme
tags only work with the models `eleven_turbo_v2` and `eleven_monolingual_v1`.
Alias tags are supported by all models excluding `eleven_turbo_v2_5` & `eleven_flash_v2_5`. Phoneme
tags only work with the models `eleven_turbo_v2`, `eleven_flash_v2` & `eleven_monolingual_v1`.
If you use phoneme tags with other models, they will silently skip the word.
</Info>

Expand Down Expand Up @@ -101,13 +101,13 @@ with open("dictionary.pls", "rb") as f:
audio_1 = client.generate(
text="Without the dictionary: tomato",
voice="Rachel",
model="eleven_turbo_v2",
model="eleven_flash_v2",
)

audio_2 = client.generate(
text="With the dictionary: tomato",
voice="Rachel",
model="eleven_turbo_v2",
model="eleven_flash_v2",
pronunciation_dictionary_locators=[
PronunciationDictionaryVersionLocator(
pronunciation_dictionary_id=pronunciation_dictionary.id,
Expand Down Expand Up @@ -136,7 +136,7 @@ pronunciation_dictionary_rules_removed = (
audio_3 = client.generate(
text="With the rule removed: tomato",
voice="Rachel",
model="eleven_turbo_v2",
model="eleven_flash_v2",
pronunciation_dictionary_locators=[
PronunciationDictionaryVersionLocator(
pronunciation_dictionary_id=pronunciation_dictionary_rules_removed.id,
Expand Down Expand Up @@ -176,7 +176,7 @@ pronunciation_dictionary_rules_added = client.pronunciation_dictionary.add_rules
audio_4 = client.generate(
text="With the rule added again: tomato",
voice="Rachel",
model="eleven_turbo_v2",
model="eleven_flash_v2",
pronunciation_dictionary_locators=[
PronunciationDictionaryVersionLocator(
pronunciation_dictionary_id=pronunciation_dictionary_rules_added.id,
Expand Down

0 comments on commit 4ca3ada

Please sign in to comment.