feature: add self-hosted whisper asr voice transcription - #494
Conversation
Co-authored-by: ThatHunky <thathunky29@gmail.com>
Adds a third transcription backend next to Telegram Premium and Cloudflare: a self-hosted whisper-asr-webservice instance with a configurable URL (in case it's used semi-locally inside Tailscale or example) and an optional auth header sent (in case of online installation). Installtion of whisper on a server with GPU gives much faster and better quality transcription. Self-hosted takes precedence over Cloudflare when both are enabled.
|
Hi. |
|
Hi @23rd, If I understood correctly, may I ask why Cloudflare has a special treatment here? I don't want to argue here, just to better understand is it a historical thing, or is there something that makes this case special. Otherwise, unrelated to the PR, do you know some apps exposing org.opentranscribe.api.ITranscriptionService on F-Droid? Is it like a well known convention for transcribing apps? Where can I read more about it, googling this exact key founds pretty much nothing, probably I'm doing something wrong here |
It is a historical thing. As a proof of concept I launched the Scrib. I think you can just ask your AI model to write a simple tiny (I guess it will be ~1MB on your device) application for Forkgram's AIDL contract. |
It is not necessary to run your tiny app or keep it in background — it is enough to have it on your device (and choose in the picker from Forkgram's settings). |
|
Thanks for the explanation, now it's more clear. Also, that indeed looks like a better solution, leaves me in the control of my part of the code allowing forkgram developers not to support this part in the app. Speaking of Scrib you mentioned, I can indeed build similar app with remote voice recognition, but I'm curious what you think of adding the remote option to Scrib? I'd like more to contribute to existing projects, rather than create my own stack of apps. At least for this purpose. |
|
Yeah, it's a pretty good idea overall. Perhaps, if we do add that feature, we should include several clear and prominent warnings stating that the audio will be sent to third-party servers, and the user must explicitly confirm twice that they understand this and give their consent. |
|
Yeah, that would be a bit weird to make app that works 100% locally to be "Your audio never leaves your phone, unless you allow it manually". Anyway, I think this PR indeed can be closed, but I have then a question regarding Scrib. What you like more: if I do a fork and make it Scrib+/Scrib Remote, or if I make a PR with similar self-hosted voice transcription to it? I prefer having it built into Scrib, and probably add be open for other transcription options in the future, but I think I'm pretty much biased |
f5d796f to
ff0a9c8
Compare
Adds a third transcription backend next to Telegram Premium and Cloudflare: a self-hosted whisper-asr-webservice instance with a configurable URL (in case it's used semi-locally inside Tailscale or example) and an optional auth header sent (in case of online installation). Installtion of whisper on a server with GPU gives much faster and better quality transcription.
Self-hosted takes precedence over Cloudflare when both are enabled.