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

Add Android sample #277

Merged
merged 7 commits into from Dec 16, 2022
Merged

Add Android sample #277

merged 7 commits into from Dec 16, 2022

Conversation

Digipom
Copy link
Contributor

@Digipom Digipom commented Dec 15, 2022

A sample Android app using whisper.cpp to do voice-to-text transcriptions.

To use:

  1. Select a model from the whisper.cpp repository.1
  2. Copy the model to the "app/src/main/assets/models" folder.
  3. Select a sample audio file (for example, jfk.wav).
  4. Copy the sample to the "app/src/main/assets/samples" folder.
  5. Select the "release" active build variant, and use Android Studio to run and deploy to your device.

Footnotes

  1. I recommend the tiny or base models for running on an Android device.

@ggerganov
Copy link
Owner

Awesome work! Thank you so much!
It works very well and this is exactly what I imagined for a demo application.

Before merging, I want to find a way to avoid the duplicated ggml/whisper source files in the example dir. Maybe some symbolic links, or some CMakeLists.txt updates. Not sure yet. If you have ideas how to avoid the duplication - let me know.

@Digipom
Copy link
Contributor Author

Digipom commented Dec 16, 2022

Done! :) Let me know how this looks.

@ggerganov ggerganov merged commit 675e787 into ggerganov:master Dec 16, 2022
@ggerganov
Copy link
Owner

@Digipom Great job!

I created a discussion here: #283
And I also referenced your example from the main README of the project. Thanks!

@Digipom
Copy link
Contributor Author

Digipom commented Dec 16, 2022

Thanks to you for creating this project! :)

@Digipom Digipom deleted the new-android-app branch December 16, 2022 17:50
rock3125 pushed a commit to rock3125/whisper.cpp that referenced this pull request Feb 21, 2023
* Add Android sample

* Use main project C files

* Stop existing playback before starting new playback

* Make text scrollable

* Stop playback when starting to record

* Remove extra var
anandijain pushed a commit to anandijain/whisper.cpp that referenced this pull request Apr 28, 2023
* Add Android sample

* Use main project C files

* Stop existing playback before starting new playback

* Make text scrollable

* Stop playback when starting to record

* Remove extra var
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
* Add Android sample

* Use main project C files

* Stop existing playback before starting new playback

* Make text scrollable

* Stop playback when starting to record

* Remove extra var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants