top | item 42927345

(no title)

fearedbliss | 1 year ago

Good question. I have actually and was recently playing around with that. The problem isn't necessarily the recordings (since I've accepted that I'm willing to record all the possible Cantonese sounds for all the words myself - I'm not a fan of AI and I don't use it in my personal life if I can avoid it), but more because of the nature of the project. I haven't figured out a way to be able to get the base directory of the site so that I can load all of the audio files from a specific directory, specially when being used in offline mode. If I was only running this project from a webserver, it's easy to get the website root and just append the audio location, but if you download the project for offline use, there doesn't seem to be an easy way to access the base dir from the file:// protocol perspective. I have some ideas but I'll need to experiment with that over time. As a stop gap measure I've added the "Core Audio Reference" page which is my recordings of all of the tones, initials, and finals. But it's still not the best experience.

Once I figure out the base dir thing I'll be able to easily just make every automatic romanization that you see an a href which points to the mp3.

discuss

order

dbtc|1 year ago

You couldn't just have an 'audio' folder next to 'dungeons'?

fearedbliss|1 year ago

Hey @dbtc, I did think about doing this but originally decided to try and find another solution. Reason being that atm my current directory structure is nested (with a variable length of nesting), and I also wanted to be able to use the audio files from anywhere in the app, which means outside of the dungeons directory. But you bringing it up again makes me think if I'm realistically going to be using them outside of the dungeons either way. Also, even if the main folder containing the audio files is called something else, as long as I have a flatter directory structure, I can make it work. I'll consider a flatter more predicable approach since having the audio files for each word is much more beneficial than not.

Thank you!