Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn main() {
"weights/positional_embedding.npz",
"weights/mel_filters.npz",
);
let result = whisper.recognize_from_audio("data/audio.wav");
let result = whisper.recognize_from_audio("data/audio.wav","en");
println!("{}", result);
}

Expand All @@ -30,3 +30,10 @@ The model works only with 16-bit WAV files, so make sure to convert your input b
```
ffmpeg -i input.mp3 -ar 16000 -ac 1 -c:a pcm_s16le output.wav
```
## Testrun on Macbook M1
```
15 sec for init
224 sec for transcription
The security of our nation is the most solemn responsibility of any government and the first priority of every Prime Minister. Today I want to take the opportunity to share my vision for an Australia that is stronger, safer and more resilient. More prepared to meet the challenges and threats of a less certain world. Almost 80 years ago on the 14th of March 1942 Prime Minister John Curtin gave a speech for broadcast on American radio. He began with this. On the great waters of the Pacific Ocean War now breathes its bloody steam. From the skies of the Pacific pours down a deadly hail. In the countless islands of the Pacific the tide of war flows madly. For you in America, for us in Australia it is flowing badly. Now Curtin was not one for doom saying or hyperbole. Truly they were the most fearful days our nation has known. Eight decades later Labour still looks to Curtin. Not just to salute his strength of character or his sacrifice but because Curtin's famous 1941 declaration that Australia looked to America was deeper than a statement of wartime necessity. It was an assertion of Australia's right and indeed Australia's responsibility to act in our own interests to make our own alliances to decide our place in our region for ourselves. And through 80 years of change that principle of sovereignty has remained at the core of Labour's approach to our foreign policy and our defence policy.
```
Provided audio File Rusty.wav was used