Skip to content

Modernize#50

Draft
JarbasAl wants to merge 8 commits intodevfrom
modernize
Draft

Modernize#50
JarbasAl wants to merge 8 commits intodevfrom
modernize

Conversation

@JarbasAl
Copy link
Member

No description provided.

JarbasAl and others added 6 commits January 9, 2026 05:14
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* 📝 Add docstrings to `modernize`

Docstrings generation was requested by @JarbasAl.

* #45 (comment)

The following files were modified:

* `ovos_stt_http_server/__init__.py`
* `ovos_stt_http_server/gradio_app.py`

* Update gradio_app.py

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: JarbasAI <33701864+JarbasAl@users.noreply.github.com>
…add docs

- Remove Gradio support entirely (gradio_app.py deleted, has_gradio param removed)
- CORSMiddleware now always allow_origins=["*"] (no env var)
- Remove gradio and flask from pyproject.toml dependencies
- Remove --gradio, --cache, --title, --description, --info, --badge CLI args
- Update unit_tests.yml from obsolete neongeckocom ref to OpenVoiceOS/gh-automations@dev
- Add lint.yml, build_tests.yml, pip_audit.yml workflows
- Add docs/index.md, QUICK_FACTS.md, FAQ.md, MAINTENANCE_REPORT.md, AUDIT.md, SUGGESTIONS.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds OpenAI Whisper, Deepgram, Google Cloud STT, AssemblyAI, and
Speechmatics-compatible endpoints so any 3rd-party app can use OVOS
STT plugins as a drop-in replacement.

- New ovos_stt_http_server/audio_utils.py: multipart_audio_to_audiodata()
  supporting WAV via stdlib and other formats via pydub
- New routers/: openai_whisper, deepgram, google_stt, assemblyai,
  speechmatics — all via make_X_router(model) factory pattern
- All schemas use Pydantic Field() constraints with Literal types
- AssemblyAI/Speechmatics are synchronous stubs (base64 audio inline)
- test/unittests/test_compat_routers.py: 20 tests, all passing

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each compat router now mounts under a prefix that identifies the API vendor:
  /openai/v1/...             OpenAI Whisper
  /deepgram/v1/...           Deepgram
  /google/v1/...             Google Cloud STT
  /assemblyai/v2/...         AssemblyAI
  /speechmatics/v1/...       Speechmatics

Benefits: all routers coexist with no path conflicts; Swagger groups by vendor.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 18, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7d8926bd-64c8-418e-8477-8d6b474587f7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch modernize
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@JarbasAl JarbasAl marked this pull request as draft March 18, 2026 16:35
Adds docs/api-compatibility.md (5 APIs, curl examples), docs/audio-formats.md
(multipart_audio_to_audiodata with line citations), docs/response-formats.md
(Whisper response_format values). Updates FAQ.md (30+ Q&As), QUICK_FACTS.md,
AUDIT.md, SUGGESTIONS.md, MAINTENANCE_REPORT.md.

AI-Generated Change:
- Model: claude-sonnet-4-6
- Intent: document all five vendor-compatible STT API layers exhaustively
- Impact: docs/ fully populated, FAQ.md 30+ entries
- Verified via: uv run pytest test/ -v (25 passed)
New tests: Whisper text/verbose_json formats, translations lang forcing,
Deepgram punctuate param, Google STT base64 WAV, AssemblyAI status field,
Speechmatics 404 for unknown id, Speechmatics full POST→GET flow.

AI-Generated Change:
- Model: claude-sonnet-4-6
- Intent: validate response formats, job flow, and param handling
- Impact: 17 → 25 tests
- Verified via: uv run pytest test/ -v (25 passed)
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