Audio
Oden audio streaming is configured in the Streamer Output panel and in the Player Remote Streamer entity.
Use Send on the side with the microphone and Receive on the side with the speakers.
Configure vehicle audio to the operator
Use this for the common one-way setup where the Streamer sends vehicle audio to the Player.
-
On the Streamer, open
Output. -
Open
Audio Streaming. -
In
Send, enableAuto Startif the microphone should start when the project opens. -
Enable
Use Defaultor select the captureDevice. When the build exposesCapture Source, useSystemfor normal operating-system audio devices and a project-specific source only when that source has been validated. -
Keep
Periodat10.0 ms, 480 frameswhen usingAudio Processing. -
Keep
ModeasVBRunless a fixed audio bitrate is required. -
Set
Target Bitrate; the default64 kbpsis enough for most speech and ambient audio. -
Select
Start Sending. -
On the Player, select the
Remote Streamerentity. -
Open
Audio. -
In
Receive, enableAuto Startif playback should start when the project opens. -
Select
Start Receiving. -
Adjust
Volumewhile receiving.
The receiver uses the default audio playback device. Change the operating-system default output device before starting Oden when the wrong speakers are used.
Configure two-way audio
Use two-way audio when the operator must talk back to the vehicle.
-
Configure vehicle-to-operator audio as above.
-
On the Player
Remote Streamerentity, openAudio. -
In
Send, select the operator microphone and selectStart Sending. -
On the Streamer, open
OutputthenAudio Streaming. -
In
Receive, selectStart Receiving. -
Test both directions separately before enabling
Auto Starton both sides.
Two-way audio uses the same network links as video. If one direction works and the other does not, check the responder ports, firewall rules, and link mode on both projects.
Tune audio processing
Open Audio Processing on the sending side.
-
Enable
Audio Processingfor microphone audio where echo, noise, or level changes are expected. -
Set
Echo CancellationtoModeratefirst; raise it only if speaker echo remains. -
Set
Noise SuppressiontoLowfirst; higher values can make machinery or speech sound unnatural. -
Increase
Compression Gainonly when the microphone is consistently too quiet.
Audio processing requires Period to be 10.0 ms, 480 frames.
Oden shows a warning when audio processing is enabled with another period.
|
Tune receive stability
Use these settings when playback is choppy or the network reorders packets.
-
Increase
Receive Bufferfirst; the default is90 ms. Larger values tolerate jitter but add latency. -
Enable
Reorder Bufferonly when packet reordering is suspected. -
Increase
Reorder Packetsgradually from the default5. -
Increase
Max Invalid Packets In A Rowonly when streams restart or reorder heavily and valid audio is rejected. Invalid packets are usually packets that are too old for the current audio timeline. -
Re-test with
Show Statsenabled and watch period, decode time, and bitrate.
Prefer fixing network loss and jitter before adding large audio buffers.
Linux audio setup
On Linux, Oden uses PulseAudio and normally follows the desktop user’s default audio input and output devices. Configure those devices in the operating system sound settings before starting Oden.
The default audio latency is 10 ms.
If a Linux setup needs a different PulseAudio latency, set PULSE_LATENCY_MSEC before launching the application:
PULSE_LATENCY_MSEC=20 oden-vr
If Player or Streamer is intentionally running as root, PulseAudio may need to run system-wide.
That is a system administration choice with security tradeoffs; prefer running the Player as a normal user unless the deployment requires root.
For the upstream PulseAudio guidance, see PulseAudio system-wide mode.
Project-file names
Audio settings are stored as RealtimeAudioSettings.
In Streamer projects, the output audio settings are under audio_streamer_settings.
In Player projects, the Remote Streamer entity stores them under realtime_audio_settings.
audio_streamer_settings : {
auto_start_sender : true;
auto_start_receiver : false;
enable_audio_processing : true;
buffer_limit_ms : 90;
encoder_settings : {
bitrate : 64000;
period : "p_e_r_i_o_d_480";
};
};
Prefer changing audio settings in the Oden UI.
Edit .vproj files directly only when applying the same known settings to many projects.