simonw / ospeak

CLI tool for running text through OpenAI Text to speech
Apache License 2.0
162 stars 10 forks source link

Support tts model selection (tts-1, tts-1-1106, tts-1-hd, tts-1-hd-1106) #10

Closed mcint closed 10 months ago

mcint commented 12 months ago

Support tts model selection to better make use of request request quotas. Support among tts-1, tts-1-1106, tts-1-hd, tts-1-hd-1106.

For at least me, the -1106 versions support 3k Req/min, versus 3 Req/min for the default.

Screenshot_20231108_192325

tomviner commented 11 months ago

This would also allow testing out the canary version of tts (canary-tts), which was added a few days ago.

As tracked by my OpenAI models API scraper at https://github.com/tomviner/scrape-ai/blame/main/openai/api/models.txt#L14

simonw commented 10 months ago

Fixed in #5

simonw commented 10 months ago

This works:

ospeak -m tts-1-hd 'hello' 

This shows an error:

ospeak -m tts-1-hd2 'hello'
Error: The model `tts-1-hd2` does not exist