Comments (7)
from android_ndk_jni.
信息提供的太少了
- 没有提供音频
- 下面的示例,soundTouch.setChannels(1) ,没有设置成双声道,但是下面的AuidoTrack 又是双声道,这里有问题
from android_ndk_jni.
信息提供的太少了
- 没有提供音频
- 下面的示例,soundTouch.setChannels(1) ,没有设置成双声道,但是下面的AuidoTrack 又是双声道,这里有问题
这里是我疏忽了,这里是设成了双声道的,图片里面的代码没有设置而已
from android_ndk_jni.
信息提供的太少了
- 没有提供音频
- 下面的示例,soundTouch.setChannels(1) ,没有设置成双声道,但是下面的AuidoTrack 又是双声道,这里有问题
#这里是示例音频,链接: https://pan.baidu.com/s/1ApzK8pF72hTKso20bdzAiw 提取码: 9m6m
from android_ndk_jni.
我看不出错误,可能是变音导致的吧,我录音的时候变音也有噪音,目前没有想到原因去解决,不过可以给你提供一些思路:
- ffmpeg我了解不多,但是他读出来的格式是不是正确的符合soundtouch,双声道格式存在差异。
- 是不是变音才有噪音,让soundtouch工作但是不改变声音,听听还有没有噪音。同时看看不用soundtouch播放是否正常,去排除音频问题。
3.你的线程池创建?创建的不是单线程吧
from android_ndk_jni.
我看不出错误,可能是变音导致的吧,我录音的时候变音也有噪音,目前没有想到原因去解决,不过可以给你提供一些思路:
- ffmpeg我了解不多,但是他读出来的格式是不是正确的符合soundtouch,双声道格式存在差异。
- 是不是变音才有噪音,让soundtouch工作但是不改变声音,听听还有没有噪音。同时看看不用soundtouch播放是否正常,去排除音频问题。
3.你的线程池创建?创建的不是单线程吧
第一点我不太清楚,第二点的话,不是变音才有噪音,只要设置成双声道就会有噪音,音频应该没有问题,因为不用soundtouch不会有噪音,第三点,线程池不是单线程
from android_ndk_jni.
~ 我也有工作,所以我也帮不了你太多,我这边用soundTouch处理AudioRecord录的PCM如果不变音,双声道也是正常。
简单搜了下别人写的,https://www.cnblogs.com/wangguchangqing/p/6003087.html
其中有写的: 有一点需要注意,FFmpeg解码后的数据存放在类型为uint8的缓存中,在将sample发送给SoundTouch处理前,需要根据SoundTouch的SAMPLETYPE进行相应的转换。本文使用的SAMPLETYPE的是S16,首先将uint8两个字节组合一个S16(小端) 你可以看看有没有相同的问题
from android_ndk_jni.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_ndk_jni.