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

G711 音頻 toPCM問題 #24

Open
humanjeff opened this issue Aug 24, 2021 · 3 comments
Open

G711 音頻 toPCM問題 #24

humanjeff opened this issue Aug 24, 2021 · 3 comments

Comments

@humanjeff
Copy link

你好,最近我使用裝置送上來的音頻,編碼是G711,但經過toPCM轉換之後,聲音會變成怪怪的,有把來源data直接存成檔案是清楚的,稍微改動了一下,G711 toPCM裡面的程式碼,但還是沒法讓聲音清楚,所以想跟您請教一下,如果需要我也能將dump下來的音頻檔案寄給您。

@glaciall
Copy link
Owner

G711有G711A/G711U两种,你说的把来源DATA存成档案时,是用什么工具进行播放的?

@humanjeff
Copy link
Author

humanjeff commented Aug 25, 2021

  1. G711A 主要PT抓到的直轉出來的CODE具體
  2. 用ffplay 播放的

@glaciall
Copy link
Owner

你所谓的怪怪的,是变得尖锐了还是低沉了?是否是由于sampling rate采样率不同而导致的?我代码里默认为8000的采样率进行解码的。

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

No branches or pull requests

2 participants