mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Force ogg
This commit is contained in:
parent
9b0de27890
commit
004542c69b
1 changed files with 2 additions and 1 deletions
|
@ -347,7 +347,7 @@ class VoiceCog(commands.Cog):
|
||||||
with tempfile.TemporaryDirectory("jimmy-audio-boost-") as temp_dir_raw:
|
with tempfile.TemporaryDirectory("jimmy-audio-boost-") as temp_dir_raw:
|
||||||
temp_dir = Path(temp_dir_raw).resolve()
|
temp_dir = Path(temp_dir_raw).resolve()
|
||||||
_input = temp_dir / file.filename
|
_input = temp_dir / file.filename
|
||||||
output = _input.with_name(_input.name + "-processed" + ".".join(_input.suffixes))
|
output = _input.with_name(_input.name + "-processed.ogg")
|
||||||
await file.save(_input)
|
await file.save(_input)
|
||||||
|
|
||||||
proc: subprocess.CompletedProcess = await self.bot.loop.run_in_executor(
|
proc: subprocess.CompletedProcess = await self.bot.loop.run_in_executor(
|
||||||
|
@ -359,6 +359,7 @@ class VoiceCog(commands.Cog):
|
||||||
"-hide_banner",
|
"-hide_banner",
|
||||||
"-i",
|
"-i",
|
||||||
str(_input),
|
str(_input),
|
||||||
|
"-c:a libopus",
|
||||||
"-b:a",
|
"-b:a",
|
||||||
"64k",
|
"64k",
|
||||||
"-af",
|
"-af",
|
||||||
|
|
Loading…
Reference in a new issue