whisper 0.0.0 copy "whisper: ^0.0.0" to clipboard
whisper: ^0.0.0 copied to clipboard

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

Whisper #

Whisper library speech to text offline,

Refrence #

  1. Whisper-Official
  2. Whisper.cpp

Screenshot #

Screenshot from 2022-10-24 17-28-26

Install #

dart pub add whisper

Compile library #

  1. for linux
git clone --recursive https://github.com/azkadev/whisper.git
cd whisper
cd native_lib
make
sudo make install
  1. for android
git clone --recursive https://github.com/azkadev/whisper.git
cd whisper
cd native_lib
make
make compile.android

Tested on #

I only have this device, so sorry I can't test other devices

  1. OS: Ubuntu 20.4 CPU: Amd Ryzen 5500u Ram: 8gb
  2. Os: Android 11 CPU: Snapdragon 665 Ram: 3gb

example #

example dengan auto convert dari semua jenis audio ke wav whisper, ffmpeg harus terinstall

import "dart:io";
import "package:whisper/scheme/scheme.dart";
import "package:whisper/whisper.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);
}

result

{
  "@type":"transcribe",
  "text":" Baby, aku pergi dulu ya, babai sayang. *muach*"
}

example 2 #

example convert audio to text without auto convert

// ignore_for_file: non_constant_identifier_names
import 'package:galaxeus_lib/galaxeus_lib.dart';
import 'package:universal_io/io.dart';
import 'package:whisper/whisper.dart';
import 'package:ffmpeg_dart/ffmpeg_dart.dart';

void main(List<String> arguments) {
  DateTime time = DateTime.now(); 
  // print(res);
  Whisper whisper = Whisper(
    whisperLib: "whisper.cpp/whisper.so",
  );
  try {
    var res = whisper.request(
      whisperRequest: WhisperRequest.fromWavFile(
        audio: File("samples/output.wav"),
        model: File("models/ggml-model-whisper-small.bin"),
      ),
    );
    print(res.toString());
    print(convertToAgo(time.millisecondsSinceEpoch));
  } catch (e) {
    print(e);
  }
}

result

{
  "@type":"transcribe",
  "text":" And so my fellow Americans, ask not what your country can do for you, ask what you can do for your country."
}

Language Support

Global Corporation

Welcome to Global Corporation profile!  

Instagram       Twitter       Twitter       Youtube      

Global Corporation Is a leading company that takes a leading role in accelerating and maintaining enterprise security.

With a sharp focus on innovation and technological excellence

Global Corporation providing effective proactive solutions to secure company operations and prevent potential adverse risks.

With a committed team of experts, advanced technology, and a holistic approach to corporate security, Global Corporation has become a benchmark for other companies that prioritize security and safety as a top priority in their business.

Application / Product / Project Official #

Global App

Super Cross-platform application allows you to do social media / chat as well as a place for buying and selling businesses to find work

Global Bot App

Super cross-platform application allows you to handle lots of bots / userbots / AI for your assistants, making it easier for you in all your affairs

Global Studio Developer #

The cross-platform Studio Developer application allows you to code on various platforms

Ads Gateway

Applikasi Cross platform advertising allows you to advertise on various platforms easily

Archivon

Applikasi Linux based operating system which will be released

Coinlox

Applikasi Cross Platform Wallet allows you to store money on the internet safely

Global Bot Telegram #

Super Bot Telegram allows you to manage various chat groups / private / channels as well as a place to buy and sell the products we sell, you can buy this service from IDR: 25k / bulan $: 1,5 Dollar

Global Userbot Telegram #

Super Bot Telegram allows you to manage various chat groups / private / channels as well as a place to buy and sell the products we sell, you can buy this service from IDR: 25k / bulan $: 1,5 Dollar

Global Bot Whatsapp #

Super Bot Telegram allows you to manage various chat groups / private / channels as well as a place to buy and sell the products we sell, you can buy this service from IDR: 25k / bulan $: 1,5 Dollar

Social Media #

Telegram  

  1. Group Developer Global Public

Product / Services #

  1. Clone Bot / Userbot Hi, do you want to have a bot / userbot with lots of features?.
  • Features:
    • Repeat Message
    • Manage Chat Private / Channel / Group
  • Platform Support:
    • Telegram
    • Whatsapp
    • Twitter
    • Github
    • Google
  1. Products
    • Black Products
    • Group / Channel
    • Nsfw
    • Payment Gateway
    • Paid Promote
    • Pre Release / Beta
    • Promo Cheap
    • Source Code Bot / USerbot
    • Trade
  2. Services
    • Developer
    • Goal
    • Partner
    • Promote
    • Recommendation
    • Sortcut Cheat Sheet
    • Terminate
    • Upgrade

How To Buy Services Or Products | Cara Beli Jasa Atau Products #

  • Via Telegram Bot

    • Englisth

      If you want to buy, you can use Telegram to automatically process the payment (if the long process is not a SCAM!! it's possible that the server is down so the process could take longer. If in doubt, tap the report menu then fill in a complaint)

      • Open Bot: https://t.me/GLOBAL_CORP_ORG_BOT
      • Fill in personal data / subscribe to the channel
      • Tap Main menu select services / products
      • Select Products / Services
      • Make sure there are enough coins
      • Fill in the required data
    • Indonesia

      Jika kamu ingin membeli bisa lewat telegram automatis pembayaran hingga proses (jika proses lama itu bukan SCAM !! kemungkinan server down jadi proses bisa lebih lama jika ragu tap menu report lalu isi keluhan)

      • Buka Bot: https://t.me/GLOBAL_CORP_ORG_BOT
      • Isi data pribadi / subscribe channel
      • Tap Main menu pilih services / products
      • Pilih Product / Services
      • Pastikan coin mencukupi
      • Isi data yang di butuhkan
  • Via Telegram USER

Video Tutorial Watch the video

  • Lewat App

    • English

      If you want to see a product/service with a full demo, you can buy it via the app

    • Indonesia

      jika kamu ingin melihat product / jasa dengan full demo kamu bisa beli lewat app

📺 Latest YouTube Videos #

Userbot LIFE TIME Subsription Telegram Murah Unlimited Akun Ultra FAST | Global Corporation Tolong 😭 Siapapun beli satu jasa aku ntr aku kasih harga seiklasnya / ada yang mau donasi | GLOBAL Cara beli ai telegram versi bot dan cara pakai| Global Corporation Ai Userbot Telegram Demo Cara Pakai Dan Beli | Global Corporation CARA BELI USERBOT TELEGRAM CLOUD  | Global Corporation Cara Top Up Automatis Menggunakan Payment Gateway Di GLOBAL BOT APP

0
likes
120
pub points
34%
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