clear_desired_channel_name
$voip.clear_desired_channel_name() -> boolClear the desired VOIP channel name.
Returns bool: True if the desired channel name was cleared.
75 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).
$voip.clear_desired_channel_name() -> boolClear the desired VOIP channel name.
Returns bool: True if the desired channel name was cleared.
$voip.clear_muted_users()Clear the muted users list.
$voip.connect() -> boolStart the user connecting to the VOIP service
Returns bool: True if the connection request was issued successfully.
$voip.disable_active_channel_transcription(channel_id: string) -> boolDisable transcription for the specified VOIP channel
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
Returns bool: True if request issued successfully, false otherwise.
$voip.disconnect() -> boolDisconnect from the VOIP service.
Returns bool: True if the disconnect request was issued successfully.
$voip.enable_active_channel_transcription(channel_id: string) -> boolEnable transcription for the specified VOIP channel
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
Returns bool: True if request issued successfully, false otherwise.
$voip.get_active_capture_device_index() -> intGet the index of the active VOIP capture device.
Returns int: The index of the active VOIP capture device.
$voip.get_active_channel_count() -> intGet the count of how many VOIP channels are active.
Returns int: The count of active VOIP channels
$voip.get_active_channel_id(index: int) -> stringGet the name of the specified VOIP channel.
| Parameter | Type | Meaning |
|---|---|---|
index | int | The index of the active channel |
Returns string: The name of the VOIP channel
$voip.get_active_channel_participant_count(channel_id: string) -> intGet the number of participants in the specified VOIP channel
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
Returns int: The number of participants in the channel
$voip.get_active_channel_participant_display_name(channel_id: string, participant_index: int) -> stringGet the display name of a participant in the specified VOIP channel
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
participant_index | int | Index of the channel participant. |
Returns string: Display name of the participant.
$voip.get_active_channel_participant_is_current_user(channel_id: string, participant_index: int) -> boolGet the display name of a participant in the specified VOIP channel
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
participant_index | int | Index of the channel participant. |
Returns bool: True if the specified participant is the current user.
$voip.get_active_channel_participant_is_speaking(channel_id: string, participant_index: int) -> boolIs the participant in the specified VOIP channel currently speaking?
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
participant_index | int | Index of the channel participant. |
Returns bool: True if the specified participant is speaking.
$voip.get_active_channel_participant_user(channel_id: string, participant_index: int) -> UserGet the Velan user of a participant in the specified VOIP channel
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
participant_index | int | Index of the channel participant. |
Returns User: The user handle of the participant
$voip.get_active_render_device_index() -> intGet the index of the active VOIP render device.
Returns int: The index of the active VOIP render device.
$voip.get_capture_device_count() -> intGet the number of VOIP capture devices.
Returns int: The number of available VOIP capture devices.
$voip.get_capture_device_display_name(device_index: int) -> stringGet the display name of the specified VOIP capture device.
| Parameter | Type | Meaning |
|---|---|---|
device_index | int | The index of the capture device to get the display name of. |
Returns string: The display name of the specified VOIP capture device.
$voip.get_capture_device_identifier(device_index: int) -> stringGet the device identifier of the specified VOIP capture device.
| Parameter | Type | Meaning |
|---|---|---|
device_index | int | The index of the capture device to get the identifier name of. |
Returns string: The device identifier of the specified VOIP capture device.
$voip.get_capture_volume() -> intGet the VOIP capture device volume.
Returns int: The capture volume in the range 0-100.
$voip.get_desired_channel_name() -> stringGet the desired VOIP channel name that was set using `set_desired_channel_name`.
Returns string: The desired channel name
$voip.get_received_text_message_count(last_id: int) -> intGet the number of messages received since the message with the specified id.
| Parameter | Type | Meaning |
|---|---|---|
last_id | int | The id of the last message to read from. |
Returns int: The received message count.
$voip.get_received_text_message_id(last_id: int, message_index: int) -> intGet the message ID of the nth received message
| Parameter | Type | Meaning |
|---|---|---|
last_id | int | The id of the last message to read from. |
message_index | int | Index of the message to read. |
Returns int: The ID of the specified message.
$voip.get_received_text_message_text(last_id: int, message_index: int) -> stringGet the message text of the nth received message
| Parameter | Type | Meaning |
|---|---|---|
last_id | int | The id of the last message to read from. |
message_index | int | Index of the message to read. |
Returns string: The text of the specified message.
$voip.get_received_text_message_user(last_id: int, message_index: int) -> UserThe Velan user id of the specified message sender
| Parameter | Type | Meaning |
|---|---|---|
last_id | int | The id of the last message to read from. |
message_index | int | Index of the message to read. |
Returns User: The Velan user of the message sender
$voip.get_received_text_message_was_sent_by_current_user(last_id: int, message_index: int) -> boolWas the sender of the specified message the currently logged in user?
| Parameter | Type | Meaning |
|---|---|---|
last_id | int | The id of the last message to read from. |
message_index | int | Index of the message to read. |
Returns bool: True if the message sender was the current user, False otherwise.
$voip.get_render_device_count() -> intGet the number of VOIP render devices.
Returns int: The number of available VOIP render devices.
$voip.get_render_device_display_name(device_index: int) -> stringGet the display name of the specified VOIP render device.
| Parameter | Type | Meaning |
|---|---|---|
device_index | int | The index of the render device to get the display name of. |
Returns string: The display name of the specified VOIP render device.
$voip.get_render_device_identifier(device_index: int) -> stringGet the device identifier of the specified VOIP render device.
| Parameter | Type | Meaning |
|---|---|---|
device_index | int | The index of the render device to get the identifier of. |
Returns string: The device identifier of the specified VOIP render device.
$voip.get_render_volume() -> intGet the VOIP render device volume.
Returns int: The render volume in the range 0-100.
$voip.get_tts_voice_count() -> intGet the number of available TTS voices.
Returns int: The number of available TTS voices.
$voip.get_tts_voice_name(voice_index: int) -> stringGet the name of the specified TTS voice.
| Parameter | Type | Meaning |
|---|---|---|
voice_index | int | The index of the TTS voice to query. |
Returns string: The name of the specified TTS voice.
$voip.is_active_channel_audio_connected(channel_id: string) -> boolIs the audio stream connected for the specified VOIP channel?
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
Returns bool: True if audio is connected on the specified channel, false otherwise.
$voip.is_active_channel_text_connected(channel_id: string) -> boolIs the text stream connected for the specified VOIP channel?
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
Returns bool: True if audio is connected on the specified channel, false otherwise.
$voip.is_active_channel_transcription_disabling(channel_id: string) -> boolIs transcription being disabled for the specified VOIP channel?
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
Returns bool: True if transcription is currently disabling on the specified channel, false otherwise.
$voip.is_active_channel_transcription_enabled(channel_id: string) -> boolIs transcription enabled for the specified VOIP channel?
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
Returns bool: True if transcription is enabled on the specified channel, false otherwise.
$voip.is_active_channel_transcription_enabling(channel_id: string) -> boolIs transcription being enabled for the specified VOIP channel?
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to query |
Returns bool: True if transcription is currently enabling on the specified channel, false otherwise.
$voip.is_allowed(target_user: User, refresh_if_disabled: bool) -> boolIs VOIP allowed with the specified target user? If no target user is specified, checks if VOIP is allowed with any user.
| Parameter | Type | Meaning |
|---|---|---|
target_user | User | The user to chat with. Can be null to query if any user can chat. |
refresh_if_disabled | bool | True to force a refresh of the global chat privilege if currently disallowed. May trigger a system dialog. |
Returns bool: True if the local user can chat with the target user. Note that this can change while the app is running.
$voip.is_allowed_checked(target_user: User) -> boolIs the VOIP allowed status for a given user finished updating?
| Parameter | Type | Meaning |
|---|---|---|
target_user | User | The user to chat with. |
Returns bool: True if the status for VOIP is available for the given user.
$voip.is_available() -> boolIs VOIP available?
Returns bool: True if the VOIP server is available?
$voip.is_connected() -> boolIs the user connected to the VOIP service?
Returns bool: True if the user is connected to the VOIP service.
$voip.is_connecting() -> boolIs the user connecting to the VOIP service?
Returns bool: True if the user is connecting to the VOIP service.
$voip.is_disconnecting() -> boolIs the user disconnecting from the VOIP service?
Returns bool: True if the user is disconnecting from the VOIP service.
$voip.is_joining_channel(channel: string) -> boolIs the user joining the specified channel?
| Parameter | Type | Meaning |
|---|---|---|
channel | string | The name of the channel |
Returns bool: True if the user is joining the specified channel.
$voip.is_leaving_channel(channel: string) -> boolIs the user leaving the specified channel?
| Parameter | Type | Meaning |
|---|---|---|
channel | string | The name of the channel |
Returns bool: True if the user is leaving the specified channel.
$voip.is_local_user_mic_muted() -> boolIs the local user's mic muted?
Returns bool: True if the user's mic is muted, False otherwise.
$voip.is_local_user_speaker_muted() -> boolIs the local user's speaker muted?
Returns bool: True if the user's speaker is muted, False otherwise.
$voip.is_logged_in() -> boolIs the user logged in to the VOIP service?
Returns bool: True if the user is logged in to the VOIP service.
$voip.is_logging_in() -> boolIs the user logging in to the VOIP service?
Returns bool: True if the user is logging in to the VOIP service.
$voip.is_logging_out() -> boolIs the user logging out of the VOIP service?
Returns bool: True if the user is logging out of the VOIP service.
$voip.is_platform_party_chat_active() -> boolIs platform-specific party chat active?
Returns bool: True if the platform-specific party chat is active, False otherwise.
$voip.is_user_blocked(user: User) -> boolIs the specified Velan user currently blocked?
| Parameter | Type | Meaning |
|---|---|---|
user | User | The user to check. |
Returns bool: True if the user is currently blocked
$voip.is_user_muted(user: User) -> boolIs the specified Velan user currently muted?
| Parameter | Type | Meaning |
|---|---|---|
user | User | The user to check. |
Returns bool: True if the user is currently muted
$voip.is_using_app_audio() -> boolQuery if VOIP is using the app's audio to render.
Returns bool: True if VOIP is using the app's audio to render, False otherwise.
$voip.join_channel(channel: string, media: bool, text: bool, is_echo: bool) -> boolJoin the specified VOIP channel
| Parameter | Type | Meaning |
|---|---|---|
channel | string | The name of the channel to join |
media | bool | True if we want to connect to the channel media (voice) |
text | bool | True if we want to connect to the channel's text feed |
is_echo | bool | Set true to join an echo test channel. |
Returns bool: True if the join request was issued successfully
$voip.leave_channel(channel: string) -> boolLeave the specified VOIP channel
| Parameter | Type | Meaning |
|---|---|---|
channel | string | The name of the channel to leave |
Returns bool: True if the leave request was issued successfully
$voip.login() -> boolStart logging the user in to the VOIP service
Returns bool: True if the login request was issued successfully.
$voip.logout() -> boolLogout of the VOIP service.
Returns bool: True if the logout request was issued successfully.
$voip.mute_user(user: User) -> boolMute the specified Velan user.
| Parameter | Type | Meaning |
|---|---|---|
user | User | The user to mute. |
Returns bool: True if the request issued successfully, False otherwise.
$voip.refresh_online_block_list() -> boolRefresh the Vivox blocked users list from vonline
Returns bool: True if the request was issued, False otherwise.
$voip.register_audio_system(start_sound_event: Reference, stop_sound_event: Reference) -> boolRegister the audio system with Vivox
| Parameter | Type | Meaning |
|---|---|---|
start_sound_event | Reference | Sound event to start playing audio. |
stop_sound_event | Reference | Sound event to stop playing audio. |
Returns bool: True if registered successfully, False otherwise.
$voip.restart()Restart the Vivox SDK. Only call to fix exceptional issues with the SDK.
$voip.send_text_message_to_active_channel(channel_id: string, message: string) -> boolSend a text message to the specified VOIP channel.
| Parameter | Type | Meaning |
|---|---|---|
channel_id | string | The name of the VOIP channel to send to |
message | string | The message to send |
Returns bool: True if the request issued successfully, False otherwise.
$voip.set_capture_volume(volume: int) -> boolSet the VOIP capture device volume.
| Parameter | Type | Meaning |
|---|---|---|
volume | int | The desired capture volume in the range 0-100. |
Returns bool: True if the request issued successfully.
$voip.set_desired_channel_name_from_group() -> boolSet the desired VOIP channel name using the current group.
Returns bool: True if the desired channel name was set.
$voip.set_desired_channel_name_from_server(base: string, team_id: int) -> boolSet the desired VOIP channel name using a base string and a team ID.
| Parameter | Type | Meaning |
|---|---|---|
base | string | The base name of the channel. |
team_id | int | The team ID to use, or -1 to ignore |
Returns bool: True if the desired channel name was set.
$voip.set_local_user_mic_muted(muted: bool) -> boolSet the muted state of the local user's mic.
| Parameter | Type | Meaning |
|---|---|---|
muted | bool | If true, mute the mic. If false, unmute. |
Returns bool: True if the request issued successfully.
$voip.set_local_user_speaker_muted(muted: bool) -> boolSet the muted state of the local user's speaker.
| Parameter | Type | Meaning |
|---|---|---|
muted | bool | If true, mute the speaker. If false, unmute. |
Returns bool: True if the request issued successfully.
$voip.set_preferred_capture_device(device_id_hash: int) -> boolSet the VOIP capture device that should be used when available.
| Parameter | Type | Meaning |
|---|---|---|
device_id_hash | int | The hash of the device identifier of the preferred capture device. |
Returns bool: True if the request issued successfully.
$voip.set_preferred_render_device(device_id_hash: int) -> boolSet the VOIP render device that should be used when available.
| Parameter | Type | Meaning |
|---|---|---|
device_id_hash | int | The hash of the device identifier of the preferred render device. |
Returns bool: True if the request issued successfully.
$voip.set_render_volume(volume: int) -> boolSet the VOIP render device volume.
| Parameter | Type | Meaning |
|---|---|---|
volume | int | The desired render volume in the range 0-100. |
Returns bool: True if the request issued successfully.
$voip.tts_speak(voice_index: int, text: string, immediate: bool, local: bool, remote: bool) -> listSpeak text using the TTS voice.
| Parameter | Type | Meaning |
|---|---|---|
voice_index | int | The index of the TTS voice to use. |
text | string | The text to speak. |
immediate | bool | If true then play immediately. If false then add to speaking queue |
local | bool | If true then TTS is played locally |
remote | bool | If true then send TTS to participants in connected sessions. |
Returns list: A list of the following: At index 0, True if the request was successful, False otherwise. At index 1, the integer id of the utterance.
$voip.tts_stop_all_speech() -> boolStop all TTS speech.
Returns bool: True if the request was successful, False otherwise.
$voip.tts_stop_speech(utterance_id: int) -> boolStop a specific TTS utterance.
| Parameter | Type | Meaning |
|---|---|---|
utterance_id | int | The id of the utterance to stop (see tts_speak). |
Returns bool: True if the request was successful, False otherwise.
$voip.unmute_user(user: User) -> boolUnmute the specified Velan user.
| Parameter | Type | Meaning |
|---|---|---|
user | User | The user to unmute. |
Returns bool: True if the request issued successfully, False otherwise.
$voip.unregister_audio_system() -> boolUnregister the audio system with Vivox
Returns bool: True if deregistered successfully, False otherwise.