JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q56479F
  • License MIT

A lightweight JavaScript SDK for real-time audio and text processing via Speaqr's public api.

Package Exports

  • @speaqr/javascript-sdk
  • @speaqr/javascript-sdk/dist/sdk.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@speaqr/javascript-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Speaqr JavaScript SDK

npm version

Speaqr Javascript SDK is a lightweight client to interact with the Speaqr API in real time. It allows you to handle events, send audio and text, and get translations or voice synthesis.

🔗 Web https://speaqr.ai


📑 Main features

  • Speech recognition (STT): Converts audio to text in real time.
  • Translation: Translates text or audio into several supported languages.
  • Speech synthesis (TTS): Generates audio from text in real time.
  • Speech recognition + translation + speech synthesis (STS) Generates translated audio from the audio heard in real time.
  • Real-time connection: Uses sockets for seamless communication with the api.
  • Compatibility: Compatible with browsers and Node.js environments.

📰 Requirements

  • A valid api key. You can get one here.

💻 Installation

Via npm:

npm install @speaqr/javascript-sdk

Via cdn

<script src="https://unpkg.com/@speaqr/javascript-sdk@latest/dist/sdk.min.js"></script>

Download files

📖 Documentation

The entire SDK and API are documented here.

🔧 Examples

The dist/examples folder contains examples of how to instantiate the SDK in different environments and several usage examples.

Please note that in order to run these examples you will need to have a valid API key, and you must change it in the variable const apiKey = 'xxxx'

🌐 License

This SDK is licensed under the MIT license. See the LICENSE.txt file for more details.

✉️ Support

If you have questions or need help, contact us here.