基于Audio Unit 写的一些demo,持续更新。目前包括:
录音
播放PCM数据
播放MP3|AAC
麦克风输入和传入的PCM数据混音
用mixUnit混音
传入两个音频文件,获取混音文件(搬运)
huisedediao / xbvoicetool Goto Github PK
View Code? Open in Web Editor NEW基于Audio Unit 写的一些demo
基于Audio Unit 写的一些demo
目前遇到一个在7plus ,iOS 10.3,上面录音,录音的mp3文件大小一直未0,但是用 AVAudioRecorder 这个录制,就可以。这个要咋个解决?
self.recorder = [[XBAudioUnitRecorder alloc] initWithRate:XBAudioRate_16k bit:XBAudioBit_16 channel:XBAudioChannel_1];
self.mp3Encoder = [[MP3Encoder alloc] initWithSampleRate:XBAudioRate_16k channels:1 bitRate:64];
这是使用AVAudioRecorder的设置
[dicM setObject:@(kAudioFormatLinearPCM) forKey:AVFormatIDKey]; [dicM setObject:@(11025.0) forKey:AVSampleRateKey]; [dicM setObject:@(2) forKey:AVNumberOfChannelsKey]; [dicM setObject:@(16) forKey:AVLinearPCMBitDepthKey]; [dicM setObject:[NSNumber numberWithInt:AVAudioQualityHigh] forKey:AVEncoderAudioQualityKey];
想和你联系,请教有关录音获取PCM数据问题,我的联系方式微信:ve131415.希望和你取得联系,谢谢。
你好,P2P网络数据传输过来,不能存文件在通过路径播放,有没有可以直接基于数据直接播放的方法呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.