VOIP From One Simulink Session to Another

Use the Signal Processing Blockset to enable voice communications between different workstations.
4.2K Downloads
Updated 1 Sep 2016

View License

Use your Simulink as a telephone to talk with your buddies! This demo allows for full duplex voice communications between Simulink sessions running on different machines. It is a variation of of a shipping demo in the Signal Processing Blockset. The encoder and decoder are the same, but m-file s-functions using the Java interface from MATLAB are included to allow for communications across the internet using the UDP protocol.
The demo is initially configured to communicate with localhost - loopback mode. After you run it, make a test sound. You should hear the sound back out of your speaker shortly thereafter.
The delay will likely be noticeable. You will also have to be careful about the placement of the microphone and speakers you use to avoid audio feedback. If the demo works on your machine, then you can get someone else to run it also, change 'localhost' to appropriate IP addresses on each end, and then talk to each other between Simulink sessions.

The original version of this submission (dspilbc_mic_duplex.mdl) works for releases R2007b thru R2008b. For releases R2009a and later, use dspilbc_mic_duplex_9a.mdl and the associated block library dspilbclib_9a.mdl.

Cite As

Darel Linebarger (2024). VOIP From One Simulink Session to Another (https://www.mathworks.com/matlabcentral/fileexchange/18348-voip-from-one-simulink-session-to-another), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.5.0.1

Updated license

1.5.0.0

Added copyright statements to all files.

1.4.0.0

Added missing file dspilbc_mic_duplex.mdl.

1.3.0.0

Added a new version that works for R2009a and later. Updated comments accordingly.

1.0.0.0

Fix truncated summary and add more info to description.