Giter VIP home page Giter VIP logo

transcriber.functions's Introduction

transcriber.functions

This repository contains Firebase Cloud Functions to handle audio transcription requests using the Whisper API.

Whisper Transcription Function

•	Endpoint: /whisperTranscription
•	Method: POST
•	Description: This function accepts a base64-encoded audio String, sends it to the Whisper API for transcription, and returns the transcribed text.

Request

•	URL: https://us-central1-transcriber-2a15d.cloudfunctions.net/whisperTranscription
•	Headers: Content-Type: application/json
•	Body: 
		{  
		   "audioFile": "your_base64_encoded_audio_string"  
		}

Response

•	Success: 
		{
		   "result": "transcribed text"
		}
  
•	Error: 
		{
		   "error": "error message"
		}

Example Usage with Postman

1.	Open Postman.
2.	Create a New Request.
3.	Set the Request Type to POST.
4.	Enter the URL: https://us-central1-transcriber-2a15d.cloudfunctions.net/whisperTranscription
5.	Set the Headers:
	•	Key: Content-Type
	•	Value: application/json
6.	Set the Body:
	•	Select raw and set the type to JSON.
	•	Add the JSON payload with the Base64-encoded audio string: 
		{  
		   "audioFile": "your_base64_encoded_audio_string"  
		}

transcriber.functions's People

Contributors

ayteksokmen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.