Welcome to the aiOla NodeJS SDKs repository. This repository contains examples and documentation for various SDKs that integrate with aiOla's Text-to-Speech (TTS) and streaming services.
This example demonstrates how to use the aiOla Streaming SDK to capture live transcripts and handle backend-triggered events.
- Key Features:
- Real-time transcription.
- Event-driven callbacks.
This example shows how to set up keyword spotting using the aiOla Streaming SDK.
- Key Features:
- Spot predefined keywords in live streams.
- Event-driven keyword matching.
en-EN, de-DE, fr-FR, zh-ZH, es-ES, pt-PT
This example demonstrates how to convert text into speech and download the resulting audio file using the aiOla TTS SDK.
- Key Features:
- Converts text into
.wav
audio files. - Supports voice selection.
- Converts text into
This example shows how to stream text-to-speech in real-time, enabling audio playback before the entire text is processed.
- Key Features:
- Real-time TTS streaming.
- Immediate audio playback.
-
Clone the repository:
git clone https://github.com/aiola-lab/aiola-nodejs-sdk.git cd aiola-nodejs-sdk
-
Install dependencies:
npm install
-
Add your
<YOUR_API_BASE_URL>
and<YOUR_BEARER_TOKEN>
and<YOUR_FLOW_ID>
to the example files. -
Run the example:
npm run synthesizeSpeech_example npm run streamSpeech_example npm run transcript_events_example npm run keywords_spotting_example