自学内容网 自学内容网

How can I integrate OpenAI Whisper model into a Kotlin app?

题意:  如何将 OpenAI Whisper 模型集成到 Kotlin 应用程序中?

问题背景:

I require guidance on incorporating Whisper OpenAI into my Android application developed with Kotlin in Android Studio. Unfortunately, I haven't come across any relevant instructions or details regarding its installation and utilization in this particular environment. I would like to use Whisper for transcribing audio to text.

我需要关于将 OpenAI Whisper 集成到我使用 Kotlin 在 Android Studio 开发的 Android 应用程序中的指导。不幸的是,我没有找到关于在这个特定环境中安装和使用它的相关说明或细节。我希望使用 Whisper 将音频转录为文本。

I am attempting to establish a connection between Whisper and my Android application developed using Kotlin.

我正在尝试在我使用 Kotlin 开发的 Android 应用程序中建立与 Whisper 的连接。

问题解决:

I added Python code using Chaquopy in my app, and it has proven to be a satisfactory solution for me. But if you want still use kotlin code, you can use curl. Here it is: 

我在应用中使用 Chaquopy 添加了 Python 代码,这对我来说是一个不错的解决方案。但如果你仍然想使用 Kotlin 代码,可以使用 curl。代码如下:

https://platform.openai.com/docs/api-reference/making-requests


原文地址:https://blog.csdn.net/suiusoar/article/details/142413821

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!