Code review feedback
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user