SuttaCentral Voice Assistant

Just flagging up a pronunciation quirk: Mallikā (Raveena), found in MN87, SC 5.2.

6 Likes

Thanks for the explanations!

Okay, well that is good to know. Keep it as-is for now, and we’ll give some thought to a best-practice long term solution. Perhaps we should use the Internet Archive as our base source, like audiotip?

All my translations are CC0, so entirely copyright free and can be used for anyone any way they wish.

For other translations, we are careful to ensure that we comply with all copyright restrictions, so this should not be a problem. Right now I am getting Ven Buddharakkhita to make a set of his files that only includes properly licensed texts.

MP3 is a quarter-century old format with higher bandwidth and lower audio quality (not to mention a long history of legal complications arising from patents) compared with the modern, open-source, patent-free opus/ogg.

http://listening-test.coresv.net/results.htm

But the richest company ever in human history doesn’t feel like supporting it because it doesn’t help them make even more money. So we should penalize all users. Makes sense! </sarcasm>

But seriously folks, this is annoying. SC embraces and supports open source, and as so often, the open source option is superior in every respect. This is not an accident: it is the flourishing of the commons.

Karl, the app is yours and the decision is yours. But can we consider offering opus/ogg as the primary file type, and maybe a fallback to MP3 for unsupported devices?

5 Likes

I’m currently investigating the equipment I need to make good recordings of voice. The microphone info is straight forward, but I believe that recording software is also required. I have no idea about this at all, but imagine that you would have specific format requirements.
I need something with a simple non-geek interface :blush:
I use a windows 10, Hp laptop. Previously, I used Apple, but had to replace my computer recently and apple was just too expensive by comparison.

6 Likes

I’m afraid I know nothing about Windows software, and almost nothing about recording software. Maybe make a special post on here asking for help?

4 Likes

Thank you, Aminah!

Excellent idea. There are currently over 3850 suttas available via SC-Voice. With SuttaCentral API integration, that number will increase dramatically. A simple way to tackle this might be to offer expandable groups such as “Majjhima Nikāya 1-152”

I learn something every day here. :joy:

The Internet Archive looks like it was intended for such archival. Indeed, there are lots of Buddhism audio files already up there.

That said, the experience of browsing the Internet Archive gave me pause. It’s like drinking from a firehose. As people contribute more and more recordings, we’ll need a way to organize them and reference them. And at some point we would inflict overchoice on ourselves.

OK. Let’s go OGG. SC-Voice originally did OGG, but then it wouldn’t play on my iPhone, so I had to switch to MP3. The ffmpeg program converts between the two, so if we store in OGG, we can deliver in MP3. OGG files tend to be a little plumper and are good at high-frequencies. OGG files make percussion music crisp and clean. I actually can’t hear the difference between OGG and MP3 voice files, however. But others might. The problem is that AWS Polly samples at 22kHz, which means that the highest frequency in Amy/Raveena voices is 11kHz . Old ears like mine can’t hear higher frequencies but young ears can hear up to 20kHz. For analog voice, the situation is quite different. Microphones will record all audible frequencies and make for a richer sound which, yes, should be represented as OGG, not MP3. Raveena and Amy will be MP3 robots and humans will be full quality. :smiley:

4 Likes

for info how on audtip.org does the filenames, mp3 metadata, to match suttacentral sutta numbering, and preserve proper sorting order with zero padded reference numbers. If you follow those standards, or something similar, it will make Karl’s job very easy to integrate into SC.

https://sites.google.com/a/audtip.org/wiki/

For recording software, audacity is free and very good.

make sure you get it from there ,and when the download link comes up, make sure it’s coming from their site or a trusted site so you don’t get malware or bloatware or adware.

for microphone:
https://www.amazon.com/Zoom-H2N-H2n-Handy-Recorder/dp/B005CQ2ZY6/ref=sr_1_3?ie=UTF8&qid=1537713685&sr=8-3&keywords=zoom+h2

I did a lot of research on this, and that’s the microphone you want. Unless you’re doing something really high end, have a recording studio, etc. I have an older generation version on that mic, run it on two rechargeable AA’s, it’s portable, can take it anywhere. Most of my recordings on audtip.org, see MN, and almost all of Ven. Jiv’s pali readings are done with that Mic. Bhante Sujato has complained about the background noise, but that’s not the mic’s fault, that’s the recording studio environment. Personally that level of noise (on my english audtip.org recordings) doesn’t bother me, and I didn’t think it worth the suffering that would be required for me to make noiseless recordings. Such as recording in a closet full of clothes to absorb the noise. I experimented with software noise reduction, but I didn’t like the results. It gets rid of all noise, but it makes the human voice sound more sterile. The zoom h2 has really great quality. When I listen to it, I can still hear in very detail even faint background noises like my housemate burping through closed doors, very distant car driving (my doors and windows are closed), birds chirping, etc. The level of detail is excellent, and I feel it’s worth it to preserve the raw human subtleties in the voice (compared to the sterilzed noise reduced version). For example, when I read the 32 marks of a great man, you can hear the subtleties of my voice trying to surpress laughter and contempt.

The h2 is portable, so you can record in the jungle, in a closet if you want noiseless background, and anywhere that you feel comfortable. I’d experimented with a few usb mics that require you t have a laptop or pc to hook up to, and some of those are really good, and a little cheaper than the zoom h2, but you have less portability, and you need a laptop/pc that’s super quiet, otherwise the laptop fan hum is going to show up as noise.

On audtip.org, for english I have almost a complete set of MN. The EBT portion of KN is almost complete, we could really use a female voice to the the Therigatha. So if that’s of interest to you, that would be a great one to record, that’s not in existence yet in English.

5 Likes

@karl_lew,

Is there an automated way to generate offline mp3 of the suttas, segmented, for people to use offline line driving/commuting with just mp3 player and no internet connection?

segmented sutta mp3 file meaning it’s broken up by those sections you have in MN 1 for example, or any of the B. Sujato’s sutta sections in teh sutta source, not just one large one hour full sutta for example. The segmentation would allow the mp3 player to skip forward quickly to desired sections.

If the sutta section numbers are zero padded to sort, if the sections have meaningful descriptions, for the generated segment outputs, then the mp3 output should be sorted and ready to play on most mp3 players without any other special metadata.

3 Likes

Yes. I plan on making full suttas available for download in a week or so after I hook up to all of SuttaCentral sutta content. Full length suttas will be expanded as possible and therefore surprisingly long. For example, I estimate that MN1 will take about 60 minutes with Raveena and longer for Amy.
Right now, SC-Voice permits download by section only.

Say more about the segmenting requirement? Did you want hundreds of spoken section numbers in MN1, for example (the expansions are auto-numbered)?

2 Likes

@Viveka, @frankk, Bhante @sujato, and others…

Concerned about how to manage a vast collection of audio recordings, I have a simple idea to propose. The idea is to use a wiki. The SC-Voice wiki could be used. Wikis are crowd-sourced. We all contribute. We all moderate (or a select few, or something).

Here is a sample page for MN1.

SC-Voice could just link to each of these pages automatically. That would simply the coding of SC-Voice and unleash the power of, well, everybody…

5 Likes

Thanks so much for this @frankk :slight_smile:
I had a look at the mic, am I correct in thinking that this mic has a SD card, and that you record to that direct from the mic… ie that you don’t need to have it plugged into a computer to record?
Also, that audacity would be required for playback and editing on the computer.

@frankk @karl_lew I’m afraid that I’ve been away from tech for so long (think 20 years!), that I’m struggling to understand all the terms and relation of the individual bits to each other etc. I’m really going to need an idiots guide… for what you’d like me to do. I have no personal preferences, but am happy to contribute, wherever it is most needed. Apologies, but I’m really going to need instructions; buy this, install that, record these things, like this, in this format, and send it here…
Once I’m set up, I’ll just get on with it :slight_smile:

3 Likes

Yes, it records to an sd card. It can also play back but only through earphones. The mic is good but you need to be prepared to have it relatively close to your mouth. You can also connect it to a computer and use it just as a usb mic, but as Frank said, it could pick up computer noise.

It can record in mp3 or as wav files. It’s a great little unit. The older models are also good.

You may find the technical advice pages on the LibreVox project site helpful starting here librivox.org/pages/about-recording/ as well as this page for setting up a recording system… https://wiki.librivox.org/index.php/Newbie_Guide_to_Recording

I should also say that Audacity is very easy to use. I have known many people who were quite computer illiterate and they mastered the basics of audio editing using Audacity very quickly. The system is visual and intuitive for doing basic editing. The fact that you have never done it before means nothing. It’s very easy.

4 Likes

Well, I’m sold on that unit… means recording is very simple :smiley:
An happy with audacity too - thank-you.

I’ll ask more targetted questions when I have the gear, about how to arrange the recording files etc.

Many Thanks!

2 Likes

To be clear, the Zoom is not a mic, or not just a mic: it’s a recorder that includes a mic.

Zoom is good, we do recordings of talks and things on it. Ven Buddharakkhita’s sutta recordings were on something similar.

The advantage of the Shure mic I pointed out before is that it is just a mic: you plug it in via USB to your phone or PC. I haven’t heard the comparable sound, but I think probably both will be fine.

Once you’ve chosen the mic, it’s important to be careful and consistent in the audio environment and the distance from the mic. Different mics have very different behaviors. A stage mic demands a close and consistent distance from the lips. But I believe the Shure is designed to be more distant, as it is used by vloggers. So you can stick it on a desk a couple of feet away and it will be fine. There are advantages and disadvantages to both types. Basically, the further a mic sits away from your lips, the less effectively it will eliminate external noise. So if you’re in a quiet place, anything is fine, but if background noise is a problem you want something that sits close.

3 Likes

This is absolutely correct. On the flip side, the closer the mic is to your mouth, the more likely that it will pick up mouth noises.

Once you start recording you may hear all kinds of sounds you didn’t realize were there. I was surprised to hear airplane noises on the recording that I had never noticed in real life.

If you already own some kind of recorder, you may want to just start practicing with that to see what kind of problems you might have. Another problem with a mic far away from the mouth is that it is more likely to pick up room acoustics. So if you are in an empty room with nothing on the walls, the recording may be echo-ie. There really is a reason studio recordings sound as good as they do.

I just realized this conversation is happening in the voice assistant thread. Perhaps it needs its own.

3 Likes

Ideal case is something like KN Snp where each sutta probably avg’s about 3-5 min each reading time, and is already sectioned by SC sutta reference title+number.

audtip.org kn-snp-eng-than-rdrfrn sutta nipāta : Free Download, Borrow, and Streaming : Internet Archive

Sutta central’s DN already seems to have logical sections built in

Some MN suttas have sections built in, but most don’t. I’m planning to add sections for all MN suttas, in fact any suttas from any nikaya that could use section divisions. For example, in AN XX, each sutta would have at least XX number of sections added, like I did for this AN 8 sutta

audtip.org an08-0030-anuruddha-eng-than-rdrfrn : Free Download, Borrow, and Streaming : Internet Archive

For an AN XX sutta, you can see the advantage of doing that on standalone mp3 players. Example: I want to hear the 5th great thought, I can just hit the mp3 skip button 5 times and get there immediately.

For your MN 1 sutta, having hundreds of sections might be overkill, but maybe not for a DN sutta.

1 Like

I tried a Shure mic once, had poor results, because then you really need to think about all the parts to buy with it to make it connect to a computer, the number of choices and factors to consider can be overwhelming. The AD converter, USB converter to connect to computer, etc. And even the Mic itself seemed like it would be better for certain kinds of singing but not so great for podcasting and sutta reading.

If you do a wiki, you would need moderators to make sure submissions and changes, like all of the SC sutta text, does not violate any copy right. There are other criteria as well, like knowing which suttas have been proof listened for accuracy, whether the files are hosted on stable sites like archive.org, and free of malware on downloads, etc.

I think a wiki can work somewhere in the process, but I don’t think you’d want the SC voice to be able to play any unmoderated submission from that wiki, just as SC sutta text collection does not just contain links to all sutta translations available on the web.

3 Likes

Aha. I think I understand better. Sentences are too granular and even Bhante Sujato’s text segments are about that level. You have grouped at an even higher level presumably for ease of traversal and study. SuttaVoice does generate sections from autoexpanded suttas. The sections are derived from the expansion groups themselves. However, I’ll be adding an auto-section option that will do the same for any sutta. The auto-sectioning will group sentences/paragraphs into 3-4 minute sections to slide in under the Apple screensaver limitations. The sections will be titled with the starting phrase and all be accessible individually. The entire sutta will also be downloadable as you have done.

On a side note, it is quite the experience to read a sutta while listening to an alternate translation spoken. The nuances stand out and are actually quite informative. I read Bhante Sujato’s translation of AN8.30 while listening to yours. Much learning!

Thank you for clearing up my confusion. I shall work on this hopefully in the next four weeks.

4 Likes

Yes. The wiki is currently open to the public and it perhaps should not be. I was discussing this with my wife who advised me to be cautious of MP3 viruses. I shall restrict editing to approved contributors. I propose Bhante Sujato, Aminah, Viveka and Frankk as initial contributors. You will all have the right to allow others to contribute–that will be an extension of trust in your hands. Bhante Sujato will be a full admin and will be able to designate other admins. For this to work, please post your github account names here so that I may set up such access. SC-Voice will not play any of these audios directly, it will simply redirect listeners to the wiki page on a new browser tab. This should provide greatest flexibility of action with a measure of moderation.

4 Likes

What is github?

3 Likes