Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cli] use librosa instead of scipy.wav #216

Merged
merged 2 commits into from
Nov 7, 2023
Merged

Conversation

robin1001
Copy link
Collaborator

No description provided.

@robin1001 robin1001 requested a review from cdliang11 November 7, 2023 04:28
number_of_samples = round(
len(pcm) * float(self.resample_rate) / sample_rate)
pcm = sps.resample(pcm, number_of_samples)
pcm, sample_rate = librosa.load(audio_path, sr=self.resample_rate)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要从-1~1,转到-65536~65536,
pcm = pcm * (1<<15)

@cdliang11 cdliang11 merged commit 803e08c into master Nov 7, 2023
@cdliang11 cdliang11 deleted the binbin-cli-librosa branch November 7, 2023 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants