Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
fix(core): fix voice effects not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mmattbtw committed May 20, 2022
1 parent acb5f50 commit c29be46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def request_tts(message: str, failed: Optional[bool] = False) -> None:
for effect in voice_effect:
if effect.lower() in VOICE_EFFECTS:
log.info("Voice Effect Detected: " + effect)
if isinstance(VOICE_EFFECTS[effect]) == list:
if type(VOICE_EFFECTS[effect]) == list:
for effect_func in VOICE_EFFECTS[effect]:
board.append(effect_func)
else:
Expand Down Expand Up @@ -364,6 +364,7 @@ def request_tts(message: str, failed: Optional[bool] = False) -> None:
board.append(Gain(gain_db=-15))

effected = board(audio, sample_rate)
log.debug("?")
sf.write(
f"./voice_files/AI_voice_{date_string}.wav",
effected,
Expand Down

0 comments on commit c29be46

Please sign in to comment.