#conversational Ai on native when running

1 messages · Page 1 of 1 (latest)

supple nimbus
#

Are you using custom WS client of an SDK? Can you share the full error message?

stark breach
#

@supple nimbus Not custom, im using the skeleton provided by Elevenlabs which utilizes ‘use dom’ in expo. The agent sends its first message to my front-end and I can see it but there is no audio. When the AI sends a second message audio works. I believe the nature is that this function is not initializing quick enough for that first message and throwing the error

#

@grizzled mesa if you have any insight on this please let me know

supple nimbus
#

Can you somehow share your code? There is a text on your screenshot that suggests that you are trying to override the first_message but this override is not allowed according to your agent settings

stark breach
supple nimbus
#

Took a look at the elevenlabs JS lib code and honestly can't figure out why that happens.

handleAudio is defined in BaseConversation but is empty, and VoiceConversation that extends the base one overrides it and that's where this addAudioBase64 function is called

stark breach
#

will do, thank you

#

I'm not getting the same error once I deploy to testflight but the audio still doesn't play on that first message
cc: @grizzled mesa @supple nimbus

ripe shell
stark breach
#

Thank you @ripe shell, I've tried setting up the delay in startSession{} but it still does not play that first message. Might it be due to the audiobase64 error\

#

What's the timeline on the approval for the pr?

#

Additional info:
I can see the first message come in on onmessage() then Ai listens but obviously user doesnt know the AI is activated since first message hasn't played- The agent comes back after 5-7 sec's asking if i need assistance

cc: @ripe shell

ripe shell
#

The fix is now out in @elevenlabs/react@0.1.6 let me know if it fixes the first message issue

#

CC @stark breach

stark breach
#

@ripe shell you’re a life saver, this was the root cause. The first message is being read now

stark breach
#

@ripe shell maybe I can pick your brain for a second. Whats the best way to supply context to the agent? Use case: ‘taking chat history from a previous conversation and supplying it’

#

Would sendContextualUpdate suffice?

supple nimbus
# stark breach Would sendContextualUpdate suffice?

this should more or less relate to the current conversation

If I were to do it I would utilize system prompt overrides or dynamic variables. If the conversation is too long, I would do an additional LLM step to summarize it first

stark breach
#

But to supply it to the voice agent, I would use sendContextualUpdate?

#

Oh wait I see what you mean, but does the sdk allow you to override it?

supple nimbus
ripe shell
stark breach
#

Can I just say I'm very impressed with this community + devs, I joined not thinking I'll get any help and you guys were amazing
cc: @ripe shell @supple nimbus

stark breach
#

In native expo, I need to be able to adjust the volume of the agent in cases where I need the volume to be 0 how would I do this? I tried using conversation.setvolume but it doesnt seem to be in control of it. Note: I still need the agent to listen even if the output volume is 0 @ripe shell

ripe shell
#

It only affects the output so the agent should continue to hear you

stark breach
#

I tried this on expo app installed on ios, but the setvolume seems to have no effect @ripe shell

ripe shell
stark breach
stark breach
#

@ripe shell