rany2 / edge-tts

Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key
https://pypi.org/project/edge-tts/
GNU General Public License v3.0
4.24k stars 447 forks source link

fil-PH-AngeloNeural voice invalid #121

Closed PLL-L closed 11 months ago

PLL-L commented 11 months ago

raise ValueError(f"Invalid voice '{voice}'.") ValueError: Invalid voice 'fil-PH-AngeloNeural '.

Source code: match = re.match(r"^([a-z]{2})-([A-Z]{2})-(.+Neural)$", voice)

Update code: match = re.match(r"^([a-z]{2,3})-([A-Z]{2})-(.+Neural)$", voice)

image

rany2 commented 11 months ago

Your edge-tts is old, this was already fixed a couple months ago.