alan-ai / alan-sdk-reactnative

Conversational AI SDK for React Native to enable text and voice conversations with actions (iOS and Android)
https://alan.app/
591 stars 16 forks source link

Use Alan along with audio libraries #16

Open KhristenkoE opened 2 years ago

KhristenkoE commented 2 years ago

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 commented 2 years ago

@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)

snyuryev commented 2 years ago

Hey @KhristenkoE

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

Somnus007 commented 2 years ago

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

It seems that alan sdk hijacked the microphone

snyuryev commented 2 years ago

@Somnus007 the same iOS devices?

Somnus007 commented 2 years ago

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