grec extracts the embedded transcripts from Google Recorder m4a files.
The Google Recorder app is an audio recording app from Google available on Google Pixel phones. It records audio voice notes and generates time-aligned transcripts using speech recognition.
When audio is exported from Recorder as an m4a file, the generated transcripts are embedded in a metadata track. This tool exports those embedded transcripts as JSON.
grec audio.m4a
Output:
{
"transcript": [
{
"word": "I",
"formatted": "\nI",
"startMs": 5660,
"endMs": 5900
},
{
"word": "end",
"startMs": 5900,
"endMs": 6380
},
// ...
Download the binary for your platform:
And run in the command line:
tar xvf grec.tar.gz
chmod +x ./grec
./grec audio.m4a
Or, compile from source
Go 1.14 or later is required.
go get -u github.com/maxhawkins/grec/cmd/grec