Giter Club home page Giter Club logo

g729-codec-service's Introduction

G729 Codec Service

This is a microservice that exposes a WebSocket interface to transcode audio between G.729A with Annex B and PCMU (G.711 µ-law).

Table of Contents

Building

Requirements

Build Procedure

  1. Clone the repository and change working directory
    git clone https://github.com/IBM/g729-codec-service
    cd g729-codec-service
    
  2. Run meson to generate the build files
    meson build
    
  3. Build the source and create an executable using ninja, an executable g729-codec-service will be generated.
    cd build/
    ninja
    
  4. Run the executable:
    ./g729-codec-service
    [2019-09-27 10:24:26.892] [g729-codec-service] [info] CWSCS0001I: g729-codec-service is listening for requests on address 0.0.0.0 and port 9001.
    

Building a Docker Container

To build as a docker container, you can follow the steps:

  1. Clone the repository and change working directory
    git clone https://github.com/IBM/g729-codec-service
    cd g729-codec-service
    
  2. Run the docker build command:
    doker build -t g729-codec-service .
    
  3. Startup the container:
    docker run g729-codec-service
    [2019-09-27 10:24:26.892] [g729-codec-service] [info] CWSCS0001I: g729-codec-service is listening for requests on address 0.0.0.0 and port 9001.
    

Configuration

Configuration is done through specification of environment variables.

Configuration Name Default Description
WEBSOCKET_SEVER_PORT 9001 Specifies the port to listen to for WebSocket requests.
WEBSOCKET_SERVER_HOST 0.0.0.0 Specifies the host interface to listen on for WebSocket requests.
WEBSOCKET_SERVER_CERT_FILE_NAME N/A Path to certificate file that will be used for secure websocket requests.
WEBSOCKET_SERVER_KEY_FILE_NAME N/A Path to key that will be used for secure websoket server requests.
WEBSOCKET_SERVER_IDLE_TIMEOUT 600 Specifies the amount of time in seconds to wait between WebSocket connection messages before closing down the connection.
LOG_LEVEL INFO Specifies the log level. Valid values are TRACE, DEBUG, INFO, WARN and OFF.
ANNEXB_ENABLED YES Specifies if annexb should be used for the codec.

Licensing

This projects is licensed under GNU GPLv2

g729-codec-service's People

Contributors

jfmartinez 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.