Sounds awesome, will try it out tonight. Would be super cool if it also saved the sound file when you pushed S so you could import words with sound straight into Anki all using just rikaichan. I'm not a programmer so don't know if it's do-able...
Really cool! Thanks a lot for this, cb4960.
I just downloaded it and tried it out. It works for me, but when I hit the key to play the audio, it takes me away from the page I'm on and brings me to the MP3 clip. The navigation bar disappears and hitting backspace doesn't take me back to the page I was at. (I think this might be because QuickTime comes up in Firefox to play the file inside the browser.) Is this what's supposed to happen? Is there any way that I could get the MP3 file to load in a new tab, or to play without having to leave the current page?
Thanks a lot in advance.
Edited: 2010-04-06, 9:32 am
Very cool idea. I second what mezpub said about saving the audio for import into anki. I think however that attaching sound files to each card would massively slow down card production as it needs to be done 1 by 1. The sweet thing about rikaichan is that you can make cards in bulk (say 100 in half an hour), by using the 's' command and importing to anki from a file. If a system could somehow be set up to import and attach the audio file to each card in bulk that would be awesome. Perhaps rikaichan could be modified to output the name of the audiofile from JDIC as a seperate field, and then anki set up to automatically use this information to attach the sound files in bulk. This is just speculation though and I have no idea how to do it. In addition to this, if anki could be set to display random sentences (taken from japanese wikipedia for example) on the answer side and intergrated with some text-to-speach system that would be the ultimate study system in my opinion.
It would give you:
-massively decreased card production time
-pronunciation for each word
-context for each word
-a random sentence for each time you review the word allowing you to better test your comprehension.
They do have that tools/options/applications dialogue in Firefox, though I never could get it to work.
I think my Firefox or something is just messed up. I checked my preferences in Firefox and there were two entries for MP3 files. One was set to ask what to do, and the other was set to play using QuickTime. I changed the QuickTime one so that both were set to 'always ask' and restarted Firefox, but it's still doing the same thing, so I don't think this is a problem with the extension. Thanks a lot anyways, cb4960 and nest0r.
Edited: 2010-04-05, 6:00 pm
Great idea. Hope this bug gets fixed soon.
Great idea. You could try to send it to the author of the original plugin and sugges that he adds that improvement.
Great idea, but it probably would have been better to make it for the latest beta. It's much faster and I haven't noticed any problems with it when making my flashcards.
Edited: 2010-04-07, 12:38 pm
I disabled the quicktime plugin and it works perfectly now with firefox...great tool!
Amazingly useful! thanks a lot!
For those of you with sound problems, or wanting to download the sound files, you could try set firefox to play mp3 files with an external aplication or always save them in options/applications/audio file (mp3)
By the way, a suggestion: Would it be possible to change the "play" button to a key not used that often? It's happened several times today, while writing an e-mail or something, that I unintentionally downloaded/played a word that my mouse was hovering over after checking up a word. Well, this might just be me and my stupidness, but I thought I could give a shout out.
Or maybe I should just shut up, I don't know... =)
Just a warning up front: I am in no way computer savvy, and don't have much of a clue what I just did.
I had the same issue with playing the audio, then be redirected to a new page so Quicktime could play the file. I was screwing around for a bit, and here's the best thing I could get.
1. Go to your Tools > Options menu
2. Go to the Applications area
3. I'm not sure what kind of files these audio files are, but I changed my default program for all the audio files to Quicktime PLAYER (I guess I have a free version installed on my comp), not the Quicktime Plugin 7.6.5 (in firefox)
4. Now when I hit D to play audio, it brings up a small window where you can play the audio. You have to actually click the play button and close the window when you're done though, but it beats the brand new page from Quicktime plugin I guess.
Like I said, I don't really have a clue what I just did, but at least it plays the audio in a semi-fast/easy way. I'm not sure if my comp is downloading all the audio files though, lol. My Firefox automatically saves all DL'ed stuff to my Downloads folder, but nothing is showing up there. *shrug*
If someone could mention what types of audio files these are, you should just be able to change the default program in your options just to cover those files.
EDIT: I guess they're mp3 files? Just changed my mp3 file defaults to windows media player, and that seems to do the same thing. Just needed to minimize my media player window and keep it on the taskbar until I need another sound played.
Hope this helps anyone having some problems.
Edited: 2010-04-07, 9:08 pm
Another "problem" I'm experiencing is that every time Firefox checks for updates, it tries to install the original extension. I normally accept upgrades for my extensions without looking, so I've already had to reinstall this one three times.
this is INCREDIBLE. now we just need a way to play the audio inline without changing the page.
I just uploaded version 2 of the mod (see first post). Just a quick change. For this version I generated a new GUID so that Firefox won't constantly ask to you to update to the latest version.
As for seamlessly playing mp3 files:
After some research, it looks like the only way to play an mp3 within Firefox without the use of QuickTime (which I don't want to install) is to use a Flash based solution like Sound Manager 2 or JQuery Player. These work great for web pages, but so far I can't find any examples of of how use them within in a Firefox extension. I'll keep looking though.
Edited: 2010-04-11, 1:50 am
For those of you allergic to installing Quicktime, there is always quicktime alternative (quicktime codecs/plugin without the player).