whisper_dart 0.0.11 copy "whisper_dart: ^0.0.11" to clipboard
whisper_dart: ^0.0.11 copied to clipboard

Openai library whisper unofficial for recognition audio to text without heavy gpu, support server side and client side.

example/example.dart

import "dart:io";

import "package:whisper_dart/scheme/scheme.dart";
import "package:whisper_dart/whisper_dart.dart";

void main(List<String> args) async {
  Whisper whisper = Whisper(whisperLib: "./path_library_shared_whisper");
  Version whisperVersion = await whisper.getVersion();
  print(whisperVersion);

  Transcribe transcribe = await whisper.transcribe(
    audio: "./path_file_audio_wav_16_bit",
    model: "./path_model_whisper_bin",
    language: "id", // language
  );
  print(transcribe);

  /// auto convert any fideo
  Transcribe transcribeAnyAudio = await whisper.transcribe(
    audio: WhisperAudioconvert.convert(
      audioInput: File("./path_audio_any_format"),
      audioOutput: File("./path_audio_convert.wav"),
    ).path,
    model: "./path_model_whisper_bin",
    language: "id", // language
  );
  print(transcribeAnyAudio);
}
38
likes
150
pub points
69%
popularity

Publisher

unverified uploader

Openai library whisper unofficial for recognition audio to text without heavy gpu, support server side and client side.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, ffmpeg_dart, galaxeus_lib, universal_io

More

Packages that depend on whisper_dart