Skip to content

codex/stt-provider-env-refactor#82

Open
NamHyeongKeol wants to merge 7 commits intomainfrom
codex/stt-provider-env-refactor
Open

codex/stt-provider-env-refactor#82
NamHyeongKeol wants to merge 7 commits intomainfrom
codex/stt-provider-env-refactor

Conversation

@NamHyeongKeol
Copy link
Copy Markdown
Collaborator

@NamHyeongKeol NamHyeongKeol commented Mar 26, 2026

Summary

  • make the realtime STT provider configurable with STT_DEFAULT_MODEL on the STT server
  • stop hardcoding Soniox defaults in the web, RN, and native clients so the server-selected provider can flow through
  • merge the latest main changes and preserve the newer native STT config fields while resolving merge conflicts

Safety

  • the default remains soniox
  • if STT_DEFAULT_MODEL is unset, blank, or unsupported, the server falls back to soniox
  • merging this PR does not change production behavior unless the STT env or per-request model is explicitly changed

Notes

  • supported provider switching is now controlled by server env / request config
  • Assembly wiring is not implemented yet; this branch prepares the provider-selection path first

Testing

  • pnpm --dir mingle-app/rn exec tsc --noEmit
  • pnpm --dir mingle-app test:unit

…v-refactor

# Conflicts:
#	mingle-app/rn/android/app/src/main/java/com/minglelabs/mingle/rn/NativeSTTModule.kt
#	mingle-app/rn/ios/mingle/NativeSTTModule.swift
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: befed0add9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 299 to 302
if (options.sttModel != null) {
config.put("stt_model", options.sttModel)
}
.put("soniox_manual_finalize_silence_ms", options.sonioxManualFinalizeSilenceMs)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fix dangling .put call in Android STT config builder

After making stt_model optional, this block leaves a chained .put(...) call unattached to any receiver (if is now a statement), which causes Kotlin compilation to fail in Android builds. Any RN Android build that compiles NativeSTTModule.kt will break here, so the config construction needs to be rewritten as separate config.put(...) statements (or a single uninterrupted chain).

Useful? React with 👍 / 👎.

…v-refactor

# Conflicts:
#	mingle-app/rn/android/app/src/main/java/com/minglelabs/mingle/rn/NativeSTTModule.kt
#	mingle-app/rn/ios/mingle/NativeSTTModule.swift
#	mingle-ios/MingleIOS/Core/Network/STTWebSocketClient.swift
#	mingle-ios/MingleIOS/ViewModels/AppViewModel.swift
…v-refactor

# Conflicts:
#	mingle-app/src/components/LivePhoneDemo/use-realtime-stt.ts
…v-refactor

# Conflicts:
#	mingle-app/rn/android/app/src/main/java/com/minglelabs/mingle/rn/NativeSTTModule.kt
#	mingle-app/src/components/LivePhoneDemo/use-realtime-stt.ts
#	mingle-stt/stt-server.ts
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.

1 participant