Is it possible to create a link or button for an audio file?

82 views
Skip to first unread message

si1v...@aol.com

unread,
Jun 5, 2015, 4:16:01 PM6/5/15
to mnemosyne-...@googlegroups.com
I'm using audio files and I'm aware of the ctrl-R. However, is it possible to have two audio files and choose one?

Basic example: The word read is pronounced -reed-[audio file] or -red-[audio file].

Or am I asking for too much? :)

If it makes a difference in an answer: I'm using windows 7 and I have basic computer use skills, but anything more is like a roulette wheel. I *might* know what you're talking about.

Gnome

unread,
Jun 5, 2015, 5:22:07 PM6/5/15
to mnemosyne-...@googlegroups.com, si1v...@aol.com
Have you tried HTML audio controls?

Peter Bienstman

unread,
Jun 5, 2015, 11:50:00 PM6/5/15
to mnemosyne-...@googlegroups.com
Or you can split this up into 2 cards...

Peter

si1v...@aol.com

unread,
Jun 7, 2015, 3:18:55 PM6/7/15
to mnemosyne-...@googlegroups.com
My html skills are annoyingly weak. Thanks for the link.

giordanoa...@gmail.com

unread,
Mar 19, 2017, 4:46:49 AM3/19/17
to mnemosyne-proj-users
I'm interested in it as well, it might be very poweful. For instance I want to add an audio file with the word in a sentece. I want it to be optional for the user (me) to open it or not.
I'm afraid my html skills are annoyingly weak as well so here is a question:

I put this in one card:
<audio controls>
<source src="p to feel.mp3" type="audio/mpeg">
</audio>
It shows the audio control panel but whe I click on it nothing happens. Maybe it doesen't find the file. I put the file it in the Mnemosyne\default.db_media folder.
Any suggestion?.

Gnome

unread,
Mar 19, 2017, 10:03:31 AM3/19/17
to mnemosyne-proj-users
The path in your code seems to be correct.
For example

<source src="p to feel.mp3" type="audio/mpeg">
becomes in windows:
<source src="file:///C:/Users/User/AppData/Roaming/Mnemosyne/default.db_media/p to feel.mp3" type="audio/mpeg">

You can see this by inserting this code together with the audio tag in the card
<form name="myform"><textarea name="outputtext"></textarea></form>
<script language="javascript" type="text/javascript">document.myform.outputtext.value = document.documentElement.outerHTML;</script>

But it does work in chrome, so the problem is not in webkit(chrome uses webkit). So I think the problem must be with Qt.

Peter Bienstman

unread,
Mar 20, 2017, 4:57:23 AM3/20/17
to mnemosyne-...@googlegroups.com

Hi,

 

The html5 audio support under Qt (but also in general) is indeed very wonky, which is why we reverted to using mplayer to play sounds…

 

Cheers,

 

Peter

--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To post to this group, send email to mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/d1ec5545-8d89-470d-83ea-21b0242990fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrea Giordano

unread,
Mar 20, 2017, 12:47:44 PM3/20/17
to mnemosyne-...@googlegroups.com
Hi. I didn't manage to make it work even with the complete address suggested.😞
--
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.

Andrea Giordano

unread,
Mar 28, 2017, 10:10:16 AM3/28/17
to mnemosyne-proj-users
Recap: I'd like to create a link to an additional audio file in my card (an audio witht a completa phrase of the word I'm memorizing

Thisi is what I have in my meaning box:

To realize
 <audio controls>
  <source src="file:///C:\Users\Me\AppData\Roaming\Mnemosyne\default.db_media\ptofeel.mp3" type="audio/mpeg">

<form name="myform"><textarea name="outputtext"></textarea></form>
<script language="javascript" type="text/javascript">document.myform.outputtext.value = document.documentElement.outerHTML;</script>
</audio>

It doesen't find the file. I checked the link and it works (copu past on my win explorer address bar)

also all these things appeared by themselves ...

<form name="myform"><textarea name="outputtext"></textarea></form>
<script language="javascript" type="text/javascript">document.myform.outputtext.value = document.documentElement.outerHTML;</script>
Any clue? Thanks

2017-03-20 14:09 GMT+05:00 Andrea Giordano <giordanoa...@gmail.com>:
Hi. I didn't manage to make it work even with the complete address suggested.😞
Il 20 Marzo 2017 13:55:21 GMT+05:00, Peter Bienstman <Peter.B...@UGent.be> ha scritto:

Hi,

 

The html5 audio support under Qt (but also in general) is indeed very wonky, which is why we reverted to using mplayer to play sounds…

 

Cheers,

 

Peter

 

From: mnemosyne-proj-users@googlegroups.com [mailto:mnemosyne-proj-users@googlegroups.com] On Behalf Of Gnome
Sent: 19 March 2017 15:04
To: mnemosyne-proj-users <mnemosyne-proj-users@googlegroups.com>
Subject: [mnemosyne-proj-users] Re: Is it possible to create a link or button for an audio file?

 

The path in your code seems to be correct.
For example
<source src="p to feel.mp3" type="audio/mpeg">
becomes in windows:
<source src="file:///C:/Users/User/AppData/Roaming/Mnemosyne/default.db_media/p to feel.mp3" type="audio/mpeg">

You can see this by inserting this code together with the audio tag in the card
<form name="myform"><textarea name="outputtext"></textarea></form>
<script language="javascript" type="text/javascript">document.myform.outputtext.value = document.documentElement.outerHTML;</script>

But it does work in chrome, so the problem is not in webkit(chrome uses webkit). So I think the problem must be with Qt.

--
You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-users+unsubscrib...@googlegroups.com.
To post to this group, send email to mnemosyne-proj-users@googlegroups.com.


--

Peter Bienstman

unread,
Mar 28, 2017, 10:16:23 AM3/28/17
to mnemosyne-...@googlegroups.com

Hi,

 

As I mentioned earlier, I also could not get html5 audio functionality to work reliably on all platforms…

 

If you really want to achieve the functionality you’re after, it’s probably better to write a plugin that disables automatic playing of the audio files.

 

Cheers,

 

Peter

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To post to this group, send email to mnemosyne-...@googlegroups.com.


--

Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.

 

--

You received this message because you are subscribed to the Google Groups "mnemosyne-proj-users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mnemosyne-proj-u...@googlegroups.com.
To post to this group, send email to mnemosyne-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/CAOyESO3UgMjP%3D%2BF7BUUAzxdGQRZYsHHC2xz2Ghr_UdgQ3TNYiA%40mail.gmail.com.

Andrea Giordano

unread,
Mar 28, 2017, 10:24:16 AM3/28/17
to mnemosyne-...@googlegroups.com

Sorry probably I dind't fully understood your previous message. Thanks anyway, tha task is too much for me. Not a Pro in IT. 

Bye

You received this message because you are subscribed to a topic in the Google Groups "mnemosyne-proj-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mnemosyne-proj-users/vy401E6geuI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mnemosyne-proj-u...@googlegroups.com.

To post to this group, send email to mnemosyne-...@googlegroups.com.

Peter Bienstman

unread,
Mar 29, 2017, 5:14:20 AM3/29/17
to mnemosyne-...@googlegroups.com

Hi,

 

Can I take a step backwards and ask why you think it’s really that bad that the audio starts playing immediately?

 

Perhaps you are using Front-to-Back cards, and should really be using Vocabulary cards with the sound file in the Pronunciation field. That way, the sound will only be played after showing the answer, both for recognition and production cards.

Andrea Giordano

unread,
Mar 30, 2017, 10:28:11 AM3/30/17
to mnemosyne-...@googlegroups.com

Hi Peter, Thanks for the questioning ...

I use Vocabulary cards with the sound in the Question box and a picture or the translation in the Answer box. In the pronunciation I have the wording in Urdu.

In this way having activated both recognition and production I have the sound to recognize and then I have the picture/translation for checking. On the other side I have the picture/translation, so I can try to remember the word and pronounce it and then I have the sound to check it. The Urdu writings is just for a better checking my pronunciation.

When I go trough the cards I would like to have sometimes the chance to have an additional audio file where I have recorded that  word within a phrase. If I put it as you suggest it will slow me down and also distract me a little bit cause I generally focus on the word, meaning and pronunciation. The use of this word  in a phrase is another useful step but just sometimes and on my control. This is how I would like to have it.

Hope it is clear enough.

I'm at your disposal. The program is so nice and useful that  I'd happy if I could be of any help.

Any further suggestion will be well accepted!

Bye

Andrea

Peter Bienstman

unread,
Mar 30, 2017, 10:34:36 AM3/30/17
to mnemosyne-...@googlegroups.com

Hi,

 

OK, I now see better what you are doing. If you really want to play some media files and not some others, we are a bit reliant on the html5 browser widget to get better cross platform support, I’m afraid…

Reply all
Reply to author
Forward
0 new messages