Skip to content

Instantly share code, notes, and snippets.

View drhaynes's full-sized avatar

David Haynes drhaynes

  • MBP Consulting Ltd
  • UK
View GitHub Profile

Whisper.cpp on an M-series Mac

  • git clone https://github.com/ggerganov/whisper.cpp.git
  • cd whisper.cpp
  • bash ./models/download-ggml-model.sh base.en
  • also trying the large v2 model:
    • bash ./models/download-ggml-model.sh large
  • ffmpeg to convert to 16-bit WAV:
    • ffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le output.wav
  • Using CoreML version (~3-5x faster):
@drhaynes
drhaynes / TouchScriptInputModule.cs
Last active June 23, 2016 08:37 — forked from simonbroggi/TouchScriptInputModule.cs
Input Module to use Unity UI with multitouch gestures from https://github.com/TouchScript version 8
/**
* Input Module to use Unity UI with multitouch from https://github.com/TouchScript
*
* Usage instructions:
* Install TouchScript in your unity project, then add an EventSystem and replace the InputModules by this one.
*
*
* Basically a modified TouchInputModule from
* https://bitbucket.org/Unity-Technologies/ui/src/5fc21bb4ecf4b40ff6630057edaa070252909b2e/UnityEngine.UI/EventSystem/InputModules/TouchInputModule.cs?at=4.6
* with ProcessTouchEvent changed to take events from TouchScript