Definitions
POST /transcribe-audio
Description Send audio data to the Speech-to-Text Google API which then returns a text transcription of that audio file. So the frontend posts the audio file to the backend (which is this API) and the backend gets the audio file, then send it to the Speech-to-Text API and that processes the audio and returns the text transcription which we return to the frontend as a response
Arguments
"audio-file":blob
The audio file you would like to transcribe to text. Must be .mp3"email:string"
The email you want the transcription to be sent to once transcription completes.
Response
201 Created
on success
- Clone project:
git clone https://github.com/Chiamaka/damaris.git
- Go to the Google Cloud Speech-to-Text API and create a project. Download the google application credentials (this enables Google authenticate your project).
- Create an
.env
file in the root of your application and add theGOOGLE_APPLICATION_CREDENTIALS
url and yourSENDGRID_API_KEY
. - Run application with
docker-compose up --build
- Use your favourite client (postman) to visit the api url.