Skip to content

AgoraIO-Community/astro-backend

Repository files navigation

Agora Backend with Astro

A complete backend and front end for your Astro & Agora projects. This repo contains:

  • Token Generator
  • Cloud Recording
  • Speech-To-Text

Guides

  1. Build a Token Generator with Astro
  2. Build a Cloud Recording Backend with Astro
  3. Build a Real-Time Speech-To-Text Backend with Astro

Get Started

  1. Create a .env file with all the properties within the .env.example
  2. Run npm install to install all dependecies.
  3. Run npm run dev to build and run the project.

Token Generator Endpoint

/api/token.json

Body needs to contain channel, role, uid, expireTime.

Cloud Recording Endpoints

/api/recording/start.json

Body needs to contain channel.

/api/recording/stop.json

Body needs to contain channel, sid, resourceId.

/api/recording/query.json

Body needs to contain sid, resourceId.

Speech-To-Text Endpoints

/api/transcription/start.json

Body needs to contain channel.

/api/transcription/stop.json

Body needs to contain taskId, builderToken.

/api/transcription/query.json

Body needs to contain taskId, builderToken.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published