baseUrl
and initializes your transport class.
start()
asynchronously will resolve when the bot and client signal
that they are ready. See messages and events. If
you want to call start()
without await
, you can use the onBotReady
callback or BotReady
event to know when you can interact with the bot.start()
when the transport is not in a ready state will
throw an error.voiceClient.config
. This property is hydrated with the bot’s config after start()
is called, and after any updateConfig
request.
updateConfig()
call will be updated. You can omit any services you don’t want to make changes to. You can omit any options within a service that you don’t want to change.
Returns a Promise that resolves with the full updated configuration.
On resolve, will trigger the onConfigUpdate
callback and ConfigUpdated
event.
On reject, will trigger the onMessageError
callback and MessageError
event.
config
or error-response
message.
VoiceClientConfigOption | undefined
llm
unknown | undefined
llm
model
VoiceClientConfigOption[]
llm
ConfigOption
object…
ConfigOption
objects.
VoiceClientConfigOption[]
setServiceOptionInConfig
multiple times.
You can pass an optional config object to update, otherwise uses a clone of the current voice client config.
Returns new instance (copy) of the client config.
VoiceMessage
data object to the bot.
See: messages and events.
VoiceMessage
object containing the type of message and data object to
dispatch.Promise<VoiceMessageActionResponse>
.start()
to test and switch between camera and microphone sources.
MediaDeviceInfo[]
.
MediaDeviceInfo[]
.
micId
, which should map a deviceId
in the list returned from getAllMics()
.
camId
, which should map a deviceId
in the list returned from getAllCams()
.
MediaStreamTrack
objects for both the client and the bot.