diff --git a/soundboard.py b/soundboard.py index beb27be..5d32c74 100644 --- a/soundboard.py +++ b/soundboard.py @@ -33,7 +33,7 @@ def index(sound=None, text=None, video=None): pitch = request.form.get("pitch", default="") pitch = pitch if pitch.strip() != "" else "50" - subprocess.Popen(["espeak", "-v", voice, "-s", speed, "-p", pitch, text], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + subprocess.Popen(["espeak", "-v", voice, "-s", speed, "-p", pitch, text.encode("utf-8")], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) return redirect("/") video = request.args.get("video")