Giter Club home page Giter Club logo

xbvoicetool's Introduction

XBVoiceTool

基于Audio Unit 写的一些demo,持续更新。目前包括:
录音
播放PCM数据
播放MP3|AAC
麦克风输入和传入的PCM数据混音
用mixUnit混音
传入两个音频文件,获取混音文件(搬运)

xbvoicetool's People

Contributors

huisedediao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xbvoicetool's Issues

录音问题

目前遇到一个在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.希望和你取得联系,谢谢。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.