From dc52c313fac145e1826af7f81276179065e269a7 Mon Sep 17 00:00:00 2001 From: lym0302 Date: Mon, 25 Apr 2022 11:03:59 +0800 Subject: [PATCH] fix code, test=doc --- paddlespeech/server/utils/audio_process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlespeech/server/utils/audio_process.py b/paddlespeech/server/utils/audio_process.py index c6dad8891..6fb5bb832 100644 --- a/paddlespeech/server/utils/audio_process.py +++ b/paddlespeech/server/utils/audio_process.py @@ -157,7 +157,7 @@ def save_audio(bytes_data, audio_path, sample_rate: int=24000) -> bool: if audio_path.endswith("pcm"): with open(audio_path, "wb") as f: - f.write(bubytes_dataffer) + f.write(bytes_data) elif audio_path.endswith("wav"): with open("./tmp.pcm", "wb") as f: f.write(bytes_data)