Overview API Keys Webhooks Usage
Studio microphone in low light — photo by Erkan Utu on Pexels Relay v2 Realtime
Try Relay Realtime v2

Sub-second transcription that holds its accuracy on noisy field recordings, across 94 languages.

Try the demo

Developer quickstart

Learn the basics and make your first request with the Foreland API.

Get started
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { ForelandClient, play } from '@foreland/foreland-js';

const foreland = new ForelandClient({
    apiKey: "YOUR_API_KEY", // Defaults to process.env.FORELAND_API_KEY
});

const audio = await foreland.textToSpeech.convert(
  'K4vTqNBsd7RMkjVDRZzb', // voice_id
  {
    text: 'A good chart is a promise about the water below.',
    modelId: 'foreland_multilingual_v2',
    outputFormat: 'mp3_44100_128', // output_format
  }
);

await play(audio);
JavaScript