chore: update Async API URL and default model

This commit is contained in:
Ashot
2026-02-10 15:23:51 +04:00
parent 79b9d929c5
commit 28e8b61eb4

View File

@@ -94,8 +94,8 @@ class AsyncAITTSService(AudioContextTTSService):
api_key: str, api_key: str,
voice_id: str, voice_id: str,
version: str = "v1", version: str = "v1",
url: str = "wss://api.async.ai/text_to_speech/websocket/ws", url: str = "wss://api.async.com/text_to_speech/websocket/ws",
model: str = "asyncflow_multilingual_v1.0", model: str = "async_flash_v1.0",
sample_rate: Optional[int] = None, sample_rate: Optional[int] = None,
encoding: str = "pcm_s16le", encoding: str = "pcm_s16le",
container: str = "raw", container: str = "raw",
@@ -108,10 +108,10 @@ class AsyncAITTSService(AudioContextTTSService):
Args: Args:
api_key: Async API key. api_key: Async API key.
voice_id: UUID of the voice to use for synthesis. See docs for a full list: voice_id: UUID of the voice to use for synthesis. See docs for a full list:
https://docs.async.ai/list-voices-16699698e0 https://docs.async.com/list-voices-16699698e0
version: Async API version. version: Async API version.
url: WebSocket URL for Async TTS API. url: WebSocket URL for Async TTS API.
model: TTS model to use (e.g., "asyncflow_multilingual_v1.0"). model: TTS model to use (e.g., "async_flash_v1.0").
sample_rate: Audio sample rate. sample_rate: Audio sample rate.
encoding: Audio encoding format. encoding: Audio encoding format.
container: Audio container format. container: Audio container format.
@@ -435,8 +435,8 @@ class AsyncAIHttpTTSService(TTSService):
api_key: str, api_key: str,
voice_id: str, voice_id: str,
aiohttp_session: aiohttp.ClientSession, aiohttp_session: aiohttp.ClientSession,
model: str = "asyncflow_multilingual_v1.0", model: str = "async_flash_v1.0",
url: str = "https://api.async.ai", url: str = "https://api.async.com",
version: str = "v1", version: str = "v1",
sample_rate: Optional[int] = None, sample_rate: Optional[int] = None,
encoding: str = "pcm_s16le", encoding: str = "pcm_s16le",
@@ -450,7 +450,7 @@ class AsyncAIHttpTTSService(TTSService):
api_key: Async API key. api_key: Async API key.
voice_id: ID of the voice to use for synthesis. voice_id: ID of the voice to use for synthesis.
aiohttp_session: An aiohttp session for making HTTP requests. aiohttp_session: An aiohttp session for making HTTP requests.
model: TTS model to use (e.g., "asyncflow_multilingual_v1.0"). model: TTS model to use (e.g., "async_flash_v1.0").
url: Base URL for Async API. url: Base URL for Async API.
version: API version string for Async API. version: API version string for Async API.
sample_rate: Audio sample rate. sample_rate: Audio sample rate.