# Cant get STT of text gen to work openai API

**URL:** <https://help.nextcloud.com/t/cant-get-stt-of-text-gen-to-work-openai-api/188960>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** docker, nc28, openai, ai, feature\
**Created:** [April 24, 2024, 2:56pm UTC](https://help.nextcloud.com/t/cant-get-stt-of-text-gen-to-work-openai-api/188960 "2024-04-24T14:56:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon\_will](https://help.nextcloud.com/letter_avatar/jon_will/32/6_449c533f586939b6e5f246632a46421f.png) [@jon\_will](https://help.nextcloud.com/u/jon_will)\
**Post date:** [April 24, 2024, 2:56pm UTC](https://help.nextcloud.com/t/cant-get-stt-of-text-gen-to-work-openai-api/188960/1 "2024-04-24T14:56:36Z")

</div>

I am trying to get the openai API to work but the logs say this when I use STT the logs say:

```auto
OCA\\Assistant\\Controller\\SpeechToTextApiController::transcribeAudio(): Argument #1 ($appId) must be of type string, null given, called in /var/www/html/lib/private/AppFramework/Http/Dispatcher.php on line 230","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"transcribeAudio","class":"OCA\\Assistant\\Controller\\SpeechToTextApiController","type":"->","args":[null,null]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function"

```

and when using text gen:

```auto
"OCA\\OpenAi\\Service\\OpenAiAPIService::getExtraParams(): Return value must be of type ?array, bool returned","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/integration_openai/lib/Service/OpenAiAPIService.php","line":339,"function":"getExtraParams"

```

But image gen works just fine so I have no clue whats wrong. If it helps my NC version is 28.0.4 and ruing the latest integration plugin. I need to get this working soon so thank you so much for the help in advance.

Edit: it may also worth mentioning in openai settings usaly  
I get this:  
Failed to save OpenAI admin options: “Invalid model extra parameters”  
(Don’t know why however)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [January 16, 2025, 8:27am UTC](https://help.nextcloud.com/t/cant-get-stt-of-text-gen-to-work-openai-api/188960/2 "2025-01-16T08:27:31Z")

</div>


