Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

TTS: Normalize input text handling

未關閉
#1,088 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@Prajna1999 已經在處理了。

開始於 2026年7月28日。

評估

這個 Issue 還沒有評估資料。

描述

Is your feature request related to a problem?
The same payload for TTS sometimes succeeds and sometimes fails with a misleading config error. This causes confusion, especially when dealing with Marathi/Devanagari text that includes emojis, markdown, and new line escapes.

Describe the solution you'd like

  • Normalize/sanitize text before TTS calls.
  • Investigate with the provider regarding the issues.
  • Explore if rule-based emoji stripping could affect speech quality since emojis might provide tonal context.
Original issue

Describe the current behavior
Same payload sometimes succeeds, sometimes fails with a misleading config error. Text is Marathi/Devanagari with emojis, markdown, and \n escapes.

eg

Getting the Failure message for TTS

[KAAPI] Invalid or unexpected parameter in Config: 'NoneType' object is not subscriptable. Review the completion config; one of the parameters does not match the provider's expected signature.

This is the payload:
{"voice":"Kore","text":"🎲 **अंक मोजणी साठी TLM**\n\n🧒 **क्रियाकलाप 1: लेटर बिंगो** \n- **साहित्य:** \n - कार्डबोर्ड \n - ए4 कागद \n - स्केल \n - स्केच पेन \n\n- **काय करायचे?** \n 1. कार्डबोर्डवर अकारांचे बिंगो खेळण्याचे ग्रिड तयार करा. \n 2. प्रत्येक बॉक्समध्ये एक अक्षर लिहा. \n 3. मुलांना डाएस किंवा बिंगो चिठ्ठ्या देऊन खेळवा. \n 4. जो पहिला बिंगो पुर्ण करतो, तो विजेता ठरावा. \n\n🌱 **शिक्षणाचा फायदा** \nअक्षरांची ओळख, आवाजाची ओळख, आणि सामाजिक संवाद कौशल्ये विकसित होते.\n\n🧒 **क्रियाकलाप 2: पाण्याच्या श्रोत परी** \n- **साहित्य:** \n - पाण्यात जात असलेले गोटे वा चीक \n\n- **काय करायचे?** \n 1. मुलांना पाण्यात गोटे फेकायला सांगा. \n 2. प्रत्येक गोट्यामध्ये संख्या लिहा. \n 3. त्यांच्या गोट्यांवरून संख्या ओळखायला सांगा. \n 4. गोटे गोळा करण्याची स्पर्धा आयोजित करा. \n\n🌱 **शिक्षणाचा फायदा** \nसंख्यांची मोजणी, स्पर्धात्मक भावना, आणि शारीरिक क्रिया यांचे संगम होते.\n\n✨ तुम्हाला या क्रियाकलापांबद्दल अधिक माहिती हवी का? 😊","provider":"google-native","organization_id":190,"model":"gemini-3.1-flash-tts-preview"}

Describe the enhancement you'd like
Normalize/sanitize text before TTS call. Follow-up = investigate with provider. Open question: Could rule-based emoji stripping hurt speech quality if emojis add tonal context? No confirmed case yet, but worth checking.

Additional context
Add any other context, metrics, screenshots, or examples about the enhancement here.
https://aistudio.google.com/learn/gemini-tts-prompt-guide-with-tags

主要語言
Python
星號
18
分支
11
平均合併
2 天 2 小時
30 天內合併 PR
33

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ProjectTech4DevAI/kaapi-backend 的其他 Issue

查看 ProjectTech4DevAI/kaapi-backend 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。