Giter Site home page Giter Site logo

vocallout's Introduction

vocallout

High throughput real-time ASR streams router [WIP]

build

The build will automatically get cmake files from Current and build the server

make

How to run the demo

  1. Prepare and run the asr in demo directory
  2. Build the project
  3. Run streaming server

How to use

Assuming that ASR and server are up and running:

  1. You may configure channels with following commands
import requests
# Create new channel
requests.post("http://127.0.0.1:8080/channel", json={
    "id": "ch1",
    "in_port": 9001,
    "out_port": 43007,
    "out_host": "127.0.0.1"
})
# Delete the channel
requests.delete("http://127.0.0.1:8080/channel", json={"id": "ch1"})
  1. To transmit the audio run ./.current/streamer --filename="samples/jfk.wav"
  2. You will be able to see the output on running asr

Expected output on streamer:

% ./.current/streamer --filename="samples/jfk.wav"
Channels: mono
Length = 11 sec
Transmitted file 'samples/jfk.wav' to the server

Expected output on ASR server:

Loading Whisper /workspace/faster-whisper-large-v3 model for en... done. It took 2.04 seconds.
Listening on localhost:43007
Connected
 And[ so,  my  fellow  Americans,]
 And  so,  my  fellow  Americans,[]
 And  so,  my  fellow  Americans,  ask  not[ what  your]
 And  so,  my  fellow  Americans,  ask  not  what  your[ country  can  do  for  you,]
 And  so,  my  fellow  Americans,  ask  not  what  your  country  can  do  for  you,[]
 And  so,  my  fellow  Americans,  ask  not  what  your  country  can  do  for  you,  ask  what  you[ can  do  for  yourself.]
 And  so,  my  fellow  Americans,  ask  not  what  your  country  can  do  for  you,  ask  what  you  can  do  for[ your  country.]
 And  so,  my  fellow  Americans,  ask  not  what  your  country  can  do  for  you,  ask  what  you  can  do  for  your  country.[]
Disconnected

Note, that regular text is commited asr output, and text in [] is uncommited hypothesis buffer

Expected output on server:

listening up to 3 streams. Admin server is on port 8080
Channel 'ch1' is online on port 9001
Channel 'ch1' is connected
Channel 'ch1' is disconnected

vocallout's People

Contributors

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