Coder Social home page Coder Social logo

audio_chat's Introduction

audio_chat

client-server program that provides text and voice chat facility using stream socket, select syscall and lportaudio library

audio recording implemented using lportaudio library

  • to install portaudio lib in ubuntu:- sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0

If your audio driver is snd-hda-intel then their may be some problem in configurations

try to run the demo.sh, it will automatically start recording for 20 seconds and play it back.

If it work as expected then all good

else if it's not recording then their is problem in the configuration of ALSA

else if it's only recording but you are not able to listen sound, make sure alsa mixer is not muted.

In case or error “Assertion 'ret == self->nfds' failed” try to re-run

TO RUN

on 1st pc

./compile_server.sh

./server

on 2nd pc

./compile_client.sh

./client <server_ip> 3490

here 3490 is port number

Ofcourse both can run on same pc, u need to use loopback address in place of server_ip

on 1st terminal

./compile_server.sh

./server

on 2nd terminal

./compile_client.sh

./client 127.0.0.1 3490

NOTE:- server need to run first in all cases.

Ignore ALSA warnings

audio_chat's People

Contributors

ak0005 avatar

Stargazers

jangsoo park avatar KangChou~OvO⁹⁹ avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.