发送语音(Send voice)

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];

BOOL sendingAudio = NO;// YES 是否正在发送音频, NO 尚未发送

if (sendingAudio == NO) {
    /* 发送音频 */
    [bDevice.mDeviceManager startSendAudio:YES];
    /* 停止录制音频 */
    [bDevice.mDeviceManager delayStopRerord:NO];
}
else {
    /* 停止发送音频 */
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [bDevice.mDeviceManager delayStopRerord:YES];
    });
    [bDevice.mDeviceManager startSendAudio:NO];
}
具体用法见demo.