Microphone To Text API

Category: voice

Transcribe speech to text in real-time using the browser's Web Speech API. This tool runs entirely in the browser and does not have a server-side API endpoint.

Endpoint

N/A Browser API (Web Speech API)
No Server API

Response

Content-Type: N/A

This tool uses the browser's built-in Web Speech API (SpeechRecognition). No server-side API is available.

// Browser-only: Use the Web Speech API
const recognition = new webkitSpeechRecognition();
recognition.continuous = true;
recognition.onresult = (e) => console.log(e.results);

cURL Example

# No cURL equivalent — this tool uses the browser's Web Speech API

Code Samples

// Microphone To Text uses the browser's Web Speech API
const recognition = new (window.SpeechRecognition || window.webkitSpeechRecognition)();
recognition.continuous = true;
recognition.interimResults = true;
recognition.lang = 'en-US';

recognition.onresult = (event) => {
    let transcript = '';
    for (let i = event.resultIndex; i < event.results.length; i++) {
        transcript += event.results[i][0].transcript;
    }
    console.log('Transcript:', transcript);
};

recognition.start();
# Microphone To Text is browser-only (Web Speech API).
# For server-side speech recognition, use the Voice to Text API endpoint.
// Microphone To Text is browser-only (Web Speech API).
// For server-side speech recognition, use the Voice to Text API endpoint.