PhotonCloudAPI > Photon Voice Client > Create Local Voice Pusher

Create Local Voice Pusher

Create the local input stream info for an Opus audio stream.

Inputs

In
Exec

Target
Photon Voice Client Object Reference

Audio in Device Name
String

use "" to use the default input device or get a list of them with GetAudioInDevices.

Sampling Rate
Integer

Audio sampling rate (frequency, in Hz). Values can be: 8000, 12000, 16000, 24000, 48000

Frame Duration Us
Integer

Uncompressed frame (audio packet) size in microseconds. Specifies the length of audio packet in microseconds. Increasing it reduces the amount of packets sent per sec. and bandwidth for the price of slightly higher audio delay. Supported values are : 20000, 40000, 60000.

Bit Rate
Integer

Stream bitrate (in bits/second). The higher the best quality but can lead to having lag.

Num Channels
Integer

channel number to use (default = 1)

Channel ID
Integer

ID of the channel to use (separated conversations, default = 0)

Use Debug Echo Mode
Boolean

if true, a PhotonAudioOut will be created to play the input

Use Voice Detector
Boolean

flag to send audio only when the voice is detected

Outputs

Out
Exec

Return Value
Boolean