PHP Classes

How to Implement a PHP Audio Streaming Tool that Can Play in One Computer Audio that is Recorded Live in Another Computer, Using the Package MG Mic Server: Send sound captured by one computer to another

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-12-03 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
mgmicserver 1.0.0GNU General Publi...5Networking, PHP 5, Unix, Audio
Description 

Author

This package can send live sound captured by one computer to another.

It provides a server script that can listen to network connections in a given host and port and will start recording audio from a given microphone and sends the audio as response to the client.

The package also provides a client script that connects to a server using a host and a port number defined in a configuration file.

The client will send the audio received from the server to the local computer audio device.

In Portuguese:

Com MGMicServer você pode usar o microfone do seu computador principal e enviar o áudio sem ruído e chiados para o seu computador secundário.

Innovation Award
PHP Programming Innovation award nominee
December 2025
Nominee
Vote
Sometimes people want to listen to what is going on near one computer while they are far near another computer.

This package allows sending sound captured by one computer microphone to another computer speakers.

Manuel Lemos
Picture of Murilo Gomes Julio
  Performance   Level  
Name: Murilo Gomes Julio <contact>
Classes: 5 packages by
Country: Brazil Brazil
Age: 37
All time rank: Not yet ranked
Week rank: Not yet ranked
Innovation award
Innovation award
Nominee: 3x

Instructions

In Portuguese:

Leia este documento para aprender como configurar e usar estes scripts para enviar áudio entre de um computadores.

Documentation

MGMicServer

Com MGMicServer você pode usar o microfone do seu computador principal (servidor) e enviar o áudio sem ruído e chiados para o seu computador secundário (cliente).

Download

Baixe a versão mais recente disponível nos releases

Requerimento

  • Linux Ubuntu 24.04 ou superior (64 bits)
  • avahi-utils
  • pulseaudio
  • pulseaudio-utils

Documentação

No seu computador que contém o microfone baixe a versão MGMicServer e no computador que irá receber o som do servidor baixe a versão MGMicServer-Client.

Abra o terminal e aplique permissão de execução para os dois executáveis, tanto no servidor quanto no cliente.

chmod +x mgmicserver
chmod +x mgmicserver-client

No servidor execute: ./mgmicserver No cliente execute: ./mgmicserver-client

Caso seja a primeira vez que está executando o mgmicserver-client irá gerar um arquivo config.json, preencha o hostname com o nome da máquina do seu servidor, exemplo "seu-pc". Não use ".local" no final, pois isso já foi configurado.

Você também pode alterar a porta no arquivo config.json ou deixar a porta que está como padrão, caso altere, lembre-se de alterar também no lado do servidor.

Support

  • GitHub: https://github.com/sponsors/mugomes/
  • More: https://mugomes.github.io/apoie.html

License

The MGMicServer is provided under:

SPDX-License-Identifier: GPL-2.0-only

Beign under the terms of the GNU General Public License version 2 only.

All contributions to the MGMicServer are subject to this license.


  Files folder image Files (4)  
File Role Description
Files folder imageclient (1 file)
Files folder imageserver (1 file)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  client  
File Role Description
  Accessible without login Plain text file mgmicserver-client.php Aux. Application script

  Files folder image Files (4)  /  server  
File Role Description
  Accessible without login Plain text file mgmicserver.php Appl. Application script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0