Update infer.py

pull/1048/head
Jackwaterveg 3 years ago committed by GitHub
parent bc835899bd
commit 8ec576f477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -235,7 +235,7 @@ class ASRExecutor(BaseExecutor):
audio = librosa.resample(audio, audio_sample_rate,
self.sample_rate)
audio_sample_rate = self.sample_rate
# pcm16 -> pcm 32
# pcm32 -> pcm 16
audio = audio * (2**(bits - 1))
audio = np.round(audio).astype("int16")
else:

Loading…
Cancel
Save