Code review feedback

This commit is contained in:
Mark Backman
2024-11-14 09:31:04 -05:00
parent d1db54d5fe
commit 72412cc0c4
2 changed files with 2 additions and 3 deletions

View File

@@ -5,7 +5,6 @@
#
import asyncio
from typing import AsyncGenerator, Optional
from loguru import logger
@@ -64,7 +63,7 @@ def language_to_aws_language(language: Language) -> str | None:
Language.SV: "sv-SE",
Language.TR: "tr-TR",
}
return language_map.get(language, "en-US")
return language_map.get(language)
class AWSTTSService(TTSService):

View File

@@ -119,7 +119,7 @@ def sample_rate_to_output_format(sample_rate: int) -> SpeechSynthesisOutputForma
44100: SpeechSynthesisOutputFormat.Raw44100Hz16BitMonoPcm,
48000: SpeechSynthesisOutputFormat.Raw48Khz16BitMonoPcm,
}
return sample_rate_map.get(sample_rate, SpeechSynthesisOutputFormat.Raw16Khz16BitMonoPcm)
return sample_rate_map.get(sample_rate, SpeechSynthesisOutputFormat.Raw24Khz16BitMonoPcm)
class AzureLLMService(BaseOpenAILLMService):