Skip to main content

apiverve_audiotranscription 1.2.7 copy "apiverve_audiotranscription: ^1.2.7" to clipboard
apiverve_audiotranscription: ^1.2.7 copied to clipboard

Audio Transcription converts speech in an audio or video file into text. Upload the file or send a public URL and get the full transcript, timed segments with start and end seconds, and the spoken lan [...]

Audio Transcription API - Dart/Flutter Client #

Audio Transcription converts speech in an audio or video file into text. Upload the file or send a public URL and get the full transcript, timed segments with start and end seconds, and the spoken language, detected automatically from 99 languages or set by you. Paid plans add word-level timestamps and confidence scores. Long recordings are transcribed in windows you continue with offset.

pub package License: MIT

This is the Dart/Flutter client for the Audio Transcription API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_audiotranscription: ^1.2.7

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_audiotranscription/apiverve_audiotranscription.dart';

void main() async {
  final client = AudiotranscriptionClient('YOUR_API_KEY');

  try {
    // This API requires a file upload — a JSON body is rejected with a 400.
    final response = await client.executeWithFile('/path/to/your-file');

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "text": "We choose to go to the moon in this decade and do the other things. Not because they are easy, but because they are hard. Three, two, one, zero, all engine running. Lift off. We have a lift off. 32 minutes past the hour. Lift off on Apollo 11.",
    "language": "en",
    "languageProbability": 0.978,
    "duration": 20.09,
    "offset": 0,
    "processedSeconds": 20.09,
    "speechSeconds": 20.09,
    "truncated": false,
    "nextOffset": null,
    "wordCount": 49,
    "segmentCount": 4,
    "segments": [
      {
        "start": 0,
        "end": 4.4,
        "text": "We choose to go to the moon in this decade and do the other things.",
        "confidence": 0.778
      },
      {
        "start": 4.4,
        "end": 7.8,
        "text": "Not because they are easy, but because they are hard.",
        "confidence": 0.778
      },
      {
        "start": 7.8,
        "end": 13.6,
        "text": "Three, two, one, zero, all engine running.",
        "confidence": 0.778
      },
      {
        "start": 13.6,
        "end": 20,
        "text": "Lift off. We have a lift off. 32 minutes past the hour. Lift off on Apollo 11.",
        "confidence": 0.778
      }
    ],
    "billedMinutes": 1,
    "model": "whisper-small"
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
120
points
99
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Audio Transcription converts speech in an audio or video file into text. Upload the file or send a public URL and get the full transcript, timed segments with start and end seconds, and the spoken language, detected automatically from 99 languages or set by you. Paid plans add word-level timestamps and confidence scores. Long recordings are transcribed in windows you continue with offset.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_audiotranscription