Skip to content

Audio: play button to hear pronunciation of all headwords #98

@bdhrs

Description

@bdhrs

This is frequently requested by dictionary users, a play button to hear the pronunciation of the Pāḷi headword.

The most obvious solution is to record audio with a Sri Lankan or Indian who has excellent pronunciation.

There are also a few technological solutions

  1. Google TTS has good Kannada voices which can work.
  2. ElevenLabs sound good but the pronounciation is characteristically Hindi, which comes with a number of problems for Pāḷi.
  3. Amazon Polly isn't great
  4. Resemble
  5. Bhashini handles massive bulk TTS within India

UPDATE: https://www.bhashini.ai/ has kindly offered an API key, and their voices are excellent for Pāḷi and Sanskrit

Checklist

  • Make Bhashini API interface
  • Script to iterate through all unique lemma_clean
  • Generate male and female voices
  • Populate database with mp3 blobs
  • Make an API endpoint in the webapp to serve audio
  • Make a JS function to fetch and play audio
  • HTML CSS JS for Webapp
  • HTML CSS JS for GoldenDict
  • Delete blank files before making database
  • Trim excess silence before making database
  • Change local server address to https://www.dpdict.net before release
  • Test
  • Integrate into monthly build process
  • Update Docs

Metadata

Metadata

Assignees

Labels

1-enhancement1 Type: New feature or an improvement2-audio2 Section: Pāḷi Audio3-python3 Language: Pythonic stuffp1Priority 1: Must havet4Time: a week or more (7days+)

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions