Skip to content

Refactor TTS service to remove unsupported language check#813

Merged
tenkus47 merged 1 commit into
developfrom
update_bookmark
Jun 25, 2026
Merged

Refactor TTS service to remove unsupported language check#813
tenkus47 merged 1 commit into
developfrom
update_bookmark

Conversation

@tenkus47

Copy link
Copy Markdown
Member
  • Removed the check for unsupported languages in the TTS audio generation function, allowing for non-Tibetan languages to be processed.
  • Updated tests to validate the handling of non-Tibetan languages and ensure correct audio generation.
  • Enhanced test coverage for TTS audio generation routes, confirming proper responses for various language inputs.

- Removed the check for unsupported languages in the TTS audio generation function, allowing for non-Tibetan languages to be processed.
- Updated tests to validate the handling of non-Tibetan languages and ensure correct audio generation.
- Enhanced test coverage for TTS audio generation routes, confirming proper responses for various language inputs.
@tenkus47 tenkus47 requested a review from Tech-lo June 25, 2026 13:47
@greptile-apps

greptile-apps Bot commented Jun 25, 2026

Copy link
Copy Markdown

Confidence Score: 4/5

Safe to merge after renaming the duplicate test function — the production logic change is correct and well-scoped.

The service change itself is clean. The only defect is in the test file: a newly added test reuses the name of an existing function, which causes Python to silently drop the first definition. The "TTS generation returned no audio data" runtime error path is no longer tested, meaning a regression there would go undetected. Fixing it requires a one-line rename.

tests/plans/audio/test_tts_test_views.py — the duplicate function name at line 68 needs to be renamed.

Reviews (1): Last reviewed commit: "Refactor TTS service to remove unsupport..." | Re-trigger Greptile

@tenkus47 tenkus47 merged commit c827cf9 into develop Jun 25, 2026
9 checks passed
@tenkus47 tenkus47 deleted the update_bookmark branch June 25, 2026 13:50
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants