---
title: "Temporary TTS public endpoint to allow Stories migrations"
method: POST
path: "/api/texttospeech"
tags: ["TextToSpeech"]
---

# Temporary TTS public endpoint to allow Stories migrations

`POST /api/texttospeech`

## Request

- Base URL: `https://api.wearelearning.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.wearelearning.io/api/texttospeech`
- Auth: OAuth 2
  - Implicit: `https://login.wearelearning.io/authorize?audience=https://api.wearelearning.io`

## Request body

- GenerateTextToSpeechDto
  - `text` string, required
  - `locale` string, required
  - `gender` string, required
  - `voiceName` string, required
  - `audioOutputFormat` string, required
  - `outputContentType` 'Wav' | 'Aac' | 'Mp3'
  - `simulationId` string, uuid, required: A valid GUID
  - `nodeId` string, uuid, required: A valid GUID

## Response `200`

OK

---

[API](https://skmtc.dev/wearelearning/apis/we-are-learning-api.md) - [All operations](https://skmtc.dev/wearelearning/apis/we-are-learning-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wearelearning/apis/we-are-learning-api/revisions/e2ca5265db77?raw)
