简体   繁体   English

蓝牙耳机无法用作iOS和OpenEars的音频录制捕获

[英]BlueTooth headset not able to use as audio recording capture for iOS and OpenEars

We are building an iOS app that does basic speech recognition. 我们正在构建一个执行基本语音识别的iOS应用。 Basically, the app counts the number of words you speak into the iOS device. 基本上,该应用会计算您在iOS设备中说出的单词数。 The app works well when speaking into the standard microphone built into the iPhone. 与iPhone内置的标准麦克风通话时,该应用程序运行良好。 However, when connecting a wireless Bluetooth audio device, we are unable to use that Bluetooth device as a method for recording voice audio. 但是,在连接无线蓝牙音频设备时,我们无法使用该蓝牙设备作为录制语音音频的方法。 We are using following software and devices: 我们正在使用以下软件和设备:

According to OpenEars, the Bluetooth audio devices should be picked up automatically ( http://www.politepix.com/forums/topic/enabling-bluetooth-support/ ). 根据OpenEars,应自动拾起Bluetooth音频设备( http://www.politepix.com/forums/topic/enabling-bluetooth-support/ )。 Are we right in assuming this? 我们认为正确吗?

We used the VoiceMemo app (the voice recording app that ships with iOS) to test out the bluetooth device as a “control” experiment: 我们使用VoiceMemo应用程序(iOS随附的语音记录应用程序)测试了蓝牙设备,以此作为“对照”实验:

  • Pair the ZOMM with the iOS device 将ZOMM与iOS设备配对
  • Open VoiceMemo 打开语音备忘录
  • Select ZOMM as input device from within the VoiceMemo app 从VoiceMemo应用程序中选择ZOMM作为输入设备
  • Start recording 开始录音
  • Stop recording – no audio was captured 停止录制-未捕获音频

Unfortunately this meant that neither our app nor the standard voice recording app is able to use the bluetooth device as a means for recording audio. 不幸的是,这意味着我们的应用程序和标准的语音录制应用程序都无法使用蓝牙设备录制音频。 Either way it's hard to rule the device as simply the issue. 无论哪种方式,都很难仅将设备视为问题。

We're curious to understand if this simply a hardware issue (and need a BT-enabled device that supports voice recording to iOS) or if there is something in the code we need to enable in order for the app to start accepting the device as recordable. 我们很想知道这是否仅仅是硬件问题(并且需要支持BT的设备支持向iOS的语音记录),或者我们是否需要启用代码中的某些内容才能使应用开始接受该设备?录制。

Also, more details about the ZOMM headset: 另外,有关ZOMM耳机的更多详细信息:

ZOMM specifications: Bluetooth Wireless Compatibility: This ZOMM device supports the following Bluetooth wireless protocols and profiles: • Bluetooth core technology v2.1+EDR • Hands-Free Profile (HFP) v1.5 headset role • Headset Profile (HSP) v1.2 headset role Bluetooth Wireless Interoperability: This ZOMM device is designed to be interoperate with all Bluetooth wireless products that support compatible profiles and roles including: Bluetooth core technology v3.0, v2.1+EDR, v2.0 +EDR, v1.2 Bluetooth master and slave roles Bluetooth Hands-Free Profile (HFP) v1.5 and prior headset (HS) role Bluetooth Headset Profile (HS) v1.2 and prior headset (HS) role ZOMM规范:蓝牙无线兼容性:此ZOMM设备支持以下蓝牙无线协议和配置文件:•蓝牙核心技术v2.1 + EDR•免提配置文件(HFP)v1.5耳机角色•耳机配置文件(HSP)v1.2耳机角色蓝牙无线互操作性:此ZOMM设备旨在与支持兼容配置文件和角色的所有蓝牙无线产品互操作,包括:蓝牙核心技术v3.0,v2.1 + EDR,v2.0 + EDR,v1.2蓝牙主从角色蓝牙免提配置文件(HFP)v1.5和以前的耳机(HS)角色蓝牙耳机配置文件(HS)v1.2和以前的耳机(HS)角色

Any idea on what we could do to resolve this issue and use Bluetooth together with the OpenEars library on iOS7.1? 关于如何解决此问题并将蓝牙与iOS7.1上的OpenEars库一起使用的任何想法?

Thanks! 谢谢! Philip 菲利普

testing with Voice Memo is logical, however the app may not be allowing the route the change when BT is connected. 用语音备忘录进行测试是合乎逻辑的,但是当连接BT时,该应用程序可能不允许更改路由。 A detailed explanation is here. 详细说明在这里。 iOS: Using Bluetooth audio output (kAudioSessionProperty_OverrideCategoryEnableBluetoothInput) AudioSession iOS:使用蓝牙音频输出(kAudioSessionProperty_OverrideCategoryEnableBluetoothInput)AudioSession

With OpenEars, I believe you can enable logging to track when the audio route changes. 相信借助OpenEars,您可以启用日志记录功能来跟踪音频路由的更改时间。 So, you can verify via logging that it is listening to where it should be or .... not listening. 因此,您可以通过日志记录来验证它正在侦听应在的位置或正在侦听的位置。 I would suggest upgrading as of this post http://www.politepix.com/forums/topic/small-bug-when-running-on-ios-8/ . 我建议从这篇文章http://www.politepix.com/forums/topic/small-bug-when-running-on-ios-8/开始进行升级。 If you scroll to the bottom you can see BT should work now. 如果滚动到底部,您会看到BT应该可以正常工作了。

Another test worth running is SaveThatWav within OE. 另一个值得运行的测试是OE中的SaveThatWav。 I have not used it, but you should be able to verify what you are listening too. 我没有使用过,但是您也应该能够验证自己在听什么。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iOS:如何从蓝牙耳机录制使用音频队列? - ios: how to record from bluetooth headset use audio queue? Callkit 使用蓝牙耳机作为音频输出 - Callkit use bluetooth headset as audio output WatchOS唤醒iOS应用以使用配对的蓝牙耳机启动录制 - WatchOS wake the iOS app to initiate recording using paired bluetooth headset 在iOS中使用耳机插孔引脚同时播放和录制音频吗? - Playing and recording Audio simutaneouly with headset jack pin in iOS? iOS 7获取所有可用的音频设备(蓝牙,耳机,扬声器,手机) - iOS 7 Get all the available audio devices (bluetooth, headset, speaker, phone) iOS:如何在音乐应用程序中的蓝牙耳机中播放缓冲音频? - iOS: How to play buffering audio in bluetooth headset in my music app? iOS-如何使用蓝牙耳机作为音频输入来录制视频? - iOS - How to record a video using a bluetooth headset as audio input? 使用手机录制音频,但通过iOS中的蓝牙耳机播放录制 - Record audio with phone, but play record through bluetooth headset in iOS 在iOS中以编程方式连接蓝牙耳机吗? - Connect Bluetooth headset programmatically in iOS? 在iOS中以编程方式将呼叫音频路由从蓝牙耳机更改为iPhone扬声器 - Change Call Audio routing from Bluetooth Headset to iPhone Speaker in iOS programatically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM