小型音声AI、大手と性能比較
A Coding Guide to Cactus Whistle: Does a 16.9 MB Speech Model Hold Up Against Whisper Base? Word Error Rate, Speed, Streaming, Timestamps, Keywords, and Speech-to-Tool Calls on a CPU
わずか16.9MBの小型音声認識AI「Whistle」が、有名な「Whisper base」モデルと比べ、一部でより良い性能と速さを見せ、低負荷での利用に期待が高まります。
このチュートリアルでは、Cactus Computeの音声テキスト変換モデルである「Whistle」を使用します。これは16.9MBのファイルでCPU上で動作し、7つの言語を文字起こしし、単語のタイムスタンプと確率を返します。モデルカードではLibriSpeechでWhisper baseを上回ると主張されており、私たちはこれをシードされたtest-cleanおよびtest-otherサンプルでテストし、WhistleをWhisper tinyおよびbaseと同一のクリップで比較しました。評価はHolm補正を適用したペアのスピーカークラスタ間隔によって行われました。その結果、test-otherでは貪欲法(greedy)のWhisper baseに対して優位性が見られましたが、ビームサーチに対しては有意な差はなく、クリップが長くなるにつれて速度の利点は縮小することがわかりました。この主要な発見に加えて、固定されたエンジンが長い音声の中間部分を30秒のウィンドウでサイレントにドロップする問題、ストリーミング遅延、タイムスタンプ、キーワードバイアス、他の言語、ノイズ、埋め込み(embeddings)、および音声からツール呼び出し(speech-to-tool calls)についても調査しました。私たちの数値はApple M4での1回の実行サンプルであり、公開されている完全な分割数値は引用されたものであり、測定されたものではありません。Copy Code Copied Use a different Browser import os import io import re import sys import json import math import time import random import hashlib import shutil import zipfile import platform import traceback import subprocess import collections import urllib.error import urllib.request RESULTS = {} VERDICTS = [] def banner(title): print("\n" + "=" * 78) print(title) print("=" * 78) def section(name): def wrap(fn): def run(*a, **kw): banner(name) t0 = time.time() try: out = fn(*a, **kw) RESULTS[name] = out if isinstance(out, str) else "ok" return out except Exception as e: RESULTS[name] = f"SKIPPED / FAILED -> {type(e).__name__}: {e}" print(f"\n[!] {name} did not complete: {type(e).__name__}: {e}") traceback.print_exc(limit=3) return None finally: print(f"\n[{time.time() - t0:.0f} s]") json.dump({"results": RESULTS, "verdicts": VERDICTS}, open("results.json", "w"), indent=1) return run return wrap banner("1. Install Whistle, pin its weights and engine by Hub revision, transcribe one clip") subprocess.run([sys.executable, "-m", "pip", "install", "-q", "cactus-nee
この記事について質問
記事の内容に答えます。記事外のことは都度ウェブで調べます。