This commit is contained in:
2021-10-07 13:20:08 +02:00
parent 290988d8f0
commit cd5be92e68

View File

@@ -42,7 +42,7 @@ def text_to_speech(text: str, lang: str = "de") -> (discord.AudioSource, Callabl
file_name = 'temp/' + ''.join(random.choice(string.ascii_lowercase) for i in range(12)) + '.mp3' file_name = 'temp/' + ''.join(random.choice(string.ascii_lowercase) for i in range(12)) + '.mp3'
tts.save(file_name) tts.save(file_name)
source = discord.PCMVolumeTransformer( source = discord.PCMVolumeTransformer(
discord.FFmpegPCMAudio(source=file_name, before_options='-v quiet -filter:a "atempo=1.5"') discord.FFmpegPCMAudio(source=file_name, before_options='-v quiet', options='-filter:a "atempo=1.5"')
) )
def destroy(): def destroy():