Replies: 1 comment
-
I switched to python request to solve this problem. The relevant program code is briefly described as follows: OpenAI_GPTgpt_link = "https://api.openai.com/v1/chat/completions" OpenAI_TTStts_link= "https://api.openai.com/v1/audio/speech" OpenAI_STTstt_link= "https://api.openai.com/v1/audio/transcriptions" OpenAI API headerheaders = {"Authorization": f'Bearer {API_TOKEN}',"Content-Type": "application/json"} GPTdef get_ChatCompletion_messages(messages): TTSdef create_tts(text,pathfilename,voice='nova'):
STTdef create_stt(pathfilename): |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I tried to use openai api to connect gpt3.5 to run on android, but I was unable to package the program into an apk file. No problems were displayed during the packaging process, but the packaging operation was still unable to be completed. My packaging command is "flet build apk".Don't know how I should deal with this problem?
Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions