KO
|
EN
gitlite — search
Search
#golang
#hacktoberfest
#php
#python3
#android
#machine-learning
#blockchain
#java
#mysql
#ruby
#csharp
#linux
ChatToolBarAudioButton
★ 18
Open GitHub ↗
iOS IM语音录音机、IM语音播放器。AMR播放器
Download README (.md)
Explore Similar Repositories
SimpleAudioPlayer
:
SimpleAudioPlayer is a simple wrapper for AVAudioPlayer
AVBufferPlayer
:
Shows how to use AVAudioPlayer to play a buffer of waveform data that you give it.
iOS-Play-And-Record-Demo
:
Demonstrates how to use AVFoundation's AVAudioRecorder and AVAudioPlayer to record and playback audio.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
ChatToolBarAudioButton
?
Download (.md)
# ChatToolBarAudioButton * 导入头文件 ```#import "ChatToolBarAudioButton.h"``` * 添加代理 ```<ChatToolBarAudioDelegate>``` * 初始化 ``` ChatToolBarAudioButton *audioButton = [[ChatToolBarAudioButton alloc]init]; audioButton.delegate = self; [self.view addSubview:audioButton]; ``` * 代理方法 ``` /* * 录音完成 * * @param audioData amr文件data * @prram body 附带信息,比如录音时长等信息 */ - (void)DPAudioRecordingFinishWithData:(NSData *)audioData withBodyString:(NSString *)body; /* * 开始录音 * * @param isRecording 是否开始 * */ - (void)DPAudioStartRecording:(BOOL)isRecording; /* * 录音失败 */ - (void)DPAudioRecordingFail:(NSString *)reason; /* * 音频值测量 * * @param power 音频值 */ - (void)DPAudioSpeakPower:(float)power; ``` * 效果图: 