Code Monkey home page Code Monkey logo

live-streaming-starter-kit's Introduction

Deepgram Live Streaming Starter Kit

Discord

Deepgram's Live Streaming Starter Kit will take you step by step through the process of getting up and running with Deepgram's live streaming API.

Documentation

Please refer to our Documentation on how to use the Streaming Starter Kit.

Getting an API Key

๐Ÿ”‘ To access the Deepgram API you will need a free Deepgram API Key.

Requirements

  • Python >= 3.6+
  • portaudio
  • A valid Deepgram API key

Installation

  1. Clone the streaming starter kit repository
  2. Install portaudio (if not already installed)
  3. Run pip install -r requirements.txt

Port Audio

If you use Homebrew or Conda, we recommend installing with brew install portaudio or conda install portaudio.

Otherwise, you can download a zip file from portaudio.com, unzip it, and then consult PortAudio's docs as a reference for how to build the package on your operating system. For Linux and MacOS, the build command within the top-level portaudio/ directory is ./configure && make.

PortAudio is known to have compatibility issues on Windows. However, this dependency is only required if you plan to stream audio from your microphone.

live-streaming-starter-kit's People

Contributors

dvonthenen avatar jkroll-deepgram avatar jpvajda avatar sandrarodgers avatar shirgoldbird avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

live-streaming-starter-kit's Issues

error while running test_suit.py with microphone

Error while sending: Task <Task pending coro=<run..sender() running at /Users/albertoumiarov/PycharmProjects/deepgram2/test_suite.py:101> cb=[gather.._done_callback() at /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py:664]> got Future attached to a different loop
๐Ÿ”ด ERROR: Something went wrong! Task <Task pending coro=<run..sender() running at /Users/albertoumiarov/PycharmProjects/deepgram2/test_suite.py:101> cb=[gather.._done_callback() at /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/asyncio/tasks.py:664]> got Future attached to a different loop

I fixed it by moving audio_queue definition and microphone call back function inside run function

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.