alan-sdk-reactnative icon indicating copy to clipboard operation
alan-sdk-reactnative copied to clipboard

Use Alan along with audio libraries

Open KhristenkoE opened this issue 2 years ago • 5 comments

alan-ai: latest version react-native: 0.66.3 iOS: 14.6 (Iphone XR)

In my app I have the expo-av module (for implementing audio playback). And Alan works perfectly until I use this or any other audio library. Alan just stops using phone's microphone and listening to commands after I use any methods of these libraries. Is it possible that they use the same native audio module and interrupt each other? And is there a way to kind of reinitialize Alan?

KhristenkoE avatar Dec 12 '21 20:12 KhristenkoE

@snyuryev Oh, and I forgot about an important thing, this happens only on a real device but works perfectly on emulators.

iOS: 14.6 (Iphone XR)

KhristenkoE avatar Dec 13 '21 08:12 KhristenkoE

Hey @KhristenkoE

Could you provide more information about scenario - how are you going to use expo-av and Alan button simultaneously?

snyuryev avatar Dec 14 '21 07:12 snyuryev

Hi @snyuryev , I also have this problem. When alan is in "LISTEN" status,

  • I can not record my own voice via expo-av.
  • When I make a voice call via Agora, the user on the other end cannot hear me. (Some models will have this problem)

It seems that alan sdk hijacked the microphone

Somnus007 avatar Dec 14 '21 08:12 Somnus007

@Somnus007 the same iOS devices?

snyuryev avatar Dec 14 '21 08:12 snyuryev

Not sure on iOS devices. I am now focusing on the android platform.

Somnus007 avatar Dec 14 '21 08:12 Somnus007