Menu

📰
0

Reddit - Please wait for verification

Django·/u/Thank_Japan·3 days ago
#Mas9BwMl
Reading 0:00
15s threshold

Hi everyone, I've been building a multilingual platform called "ThankJapan" using Django. I recently hit a few technical hurdles and wanted to share how I solved them. 1. The Mixed Content Headache (HTTP vs HTTPS) My database (Cloudinary) had thousands of image URLs stored as http://. When I deployed to Heroku, I got hit with 40+ Mixed Content warnings. Instead of manually updating the DB, I used this "one-liner" in my base template's , which worked like a charm: 2. Making TTS sound "Human" instead of "Robot" I'm using the Web Speech API for Japanese audio. The default voices sounded terrible. I wrote a JS logic to prioritize premium system voices like "Google 日本語", "Microsoft Natural", and iOS's "Hattori/O-ren". It makes a world of difference for language learners. 3. Handling HTML tags in TTS My example sentences in the DB are stored with tags for Furigana. Of course, the TTS engine tries to read the tags!…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More