A complete backend and front end for your Astro & Agora projects. This repo contains:
- Token Generator
- Cloud Recording
- Speech-To-Text
- Build a Token Generator with Astro
- Build a Cloud Recording Backend with Astro
- Build a Real-Time Speech-To-Text Backend with Astro
- Create a
.env
file with all the properties within the.env.example
- Run
npm install
to install all dependecies. - Run
npm run dev
to build and run the project.
/api/token.json
Body needs to contain channel, role, uid, expireTime.
/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.
/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.