RE: [mnemosyne-proj-users] Re: Is it possible to create a link or button for an audio file?

2017-03-30 Thread Peter Bienstman
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…

Peter

From: mnemosyne-proj-users@googlegroups.com 
[mailto:mnemosyne-proj-users@googlegroups.com] On Behalf Of Andrea Giordano
Sent: 30 March 2017 16:28
To: mnemosyne-proj-users@googlegroups.com
Subject: Re: [mnemosyne-proj-users] Re: Is it possible to create a link or 
button for an audio file?


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



Il 29/03/2017 14:14, Peter Bienstman ha scritto:
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.

Cheers,

Peter

From: 
mnemosyne-proj-users@googlegroups.com
 [mailto:mnemosyne-proj-users@googlegroups.com] On Behalf Of Andrea Giordano
Sent: 28 March 2017 16:24
To: 
mnemosyne-proj-users@googlegroups.com
Subject: Re: [mnemosyne-proj-users] Re: Is it possible to create a link or 
button for an audio file?


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

Thanks anyway.28/03/2017 19:16, Peter Bienstman ha scritto:
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

From: 
mnemosyne-proj-users@googlegroups.com
 [mailto:mnemosyne-proj-users@googlegroups.com] On Behalf Of Andrea Giordano
Sent: 28 March 2017 16:10
To: mnemosyne-proj-users 

Subject: Re: [mnemosyne-proj-users] Re: Is it possible to create a link or 
button for an audio file?

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
 
  

document.myform.outputtext.value = 
document.documentElement.outerHTML;

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 ...

document.myform.outputtext.value = 
document.documentElement.outerHTML;
Any clue? Thanks

2017-03-20 14:09 GMT+05:00 Andrea Giordano 
>:
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 
> 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 
>
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

becomes in windows:


You can see this by inserting this code together with the audio tag in the card


RE: [mnemosyne-proj-users] Re: Is it possible to create a link or button for an audio file?

2017-03-29 Thread Peter Bienstman
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.

Cheers,

Peter

From: mnemosyne-proj-users@googlegroups.com 
[mailto:mnemosyne-proj-users@googlegroups.com] On Behalf Of Andrea Giordano
Sent: 28 March 2017 16:24
To: mnemosyne-proj-users@googlegroups.com
Subject: Re: [mnemosyne-proj-users] Re: Is it possible to create a link or 
button for an audio file?


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

Thanks anyway.28/03/2017 19:16, Peter Bienstman ha scritto:
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

From: 
mnemosyne-proj-users@googlegroups.com
 [mailto:mnemosyne-proj-users@googlegroups.com] On Behalf Of Andrea Giordano
Sent: 28 March 2017 16:10
To: mnemosyne-proj-users 

Subject: Re: [mnemosyne-proj-users] Re: Is it possible to create a link or 
button for an audio file?

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
 
  

document.myform.outputtext.value = 
document.documentElement.outerHTML;

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 ...

document.myform.outputtext.value = 
document.documentElement.outerHTML;
Any clue? Thanks

2017-03-20 14:09 GMT+05:00 Andrea Giordano 
>:
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 
> 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 
>
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

becomes in windows:


You can see this by inserting this code together with the audio tag in the card

document.myform.outputtext.value = 
document.documentElement.outerHTML;

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+unsubscr...@googlegroups.com.
To post to this group, send email to 
mnemosyne-proj-users@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.

--
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
mnemosyne-proj-users@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.
For more options, visit 

Re: [mnemosyne-proj-users] Re: Is it possible to create a link or button for an audio file?

2017-03-28 Thread Andrea Giordano
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

Thanks anyway.28/03/2017 19:16, Peter Bienstman ha scritto:


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

*From:*mnemosyne-proj-users@googlegroups.com 
[mailto:mnemosyne-proj-users@googlegroups.com] *On Behalf Of *Andrea 
Giordano

*Sent:* 28 March 2017 16:10
*To:* mnemosyne-proj-users 
*Subject:* Re: [mnemosyne-proj-users] Re: Is it possible to create a 
link or button for an audio file?


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
 
  src="file:///C:\Users\Me\AppData\Roaming\Mnemosyne\default.db_media\ptofeel.mp3 
" 
type="audio/mpeg">


type="text/javascript">document.myform.outputtext.value = 
document.documentElement.outerHTML;



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 ...


type="text/javascript">document.myform.outputtext.value = 
document.documentElement.outerHTML;

Any clue? Thanks

2017-03-20 14:09 GMT+05:00 Andrea Giordano 
>:


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
> 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
>
*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

becomes in windows:


You can see this by inserting this code together with the
audio tag in the card

document.myform.outputtext.value =
document.documentElement.outerHTML;

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+unsubscr...@googlegroups.com
.
To post to this group, send email to
mnemosyne-proj-users@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
.


-- 


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-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to 
mnemosyne-proj-users@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 
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the 
Google Groups 

Re: [mnemosyne-proj-users] Re: Is it possible to create a link or button for an audio file?

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
 
  


document.myform.outputtext.value = document.documentElement.
outerHTML;


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 ...


document.myform.outputtext.value = document.documentElement.
outerHTML;
Any clue? Thanks

2017-03-20 14:09 GMT+05:00 Andrea Giordano :

> 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
>  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 
>> *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
>> 
>> becomes in windows:
>> > 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
>> 
>> > type="text/javascript">document.myform.outputtext.value
>> = document.documentElement.outerHTML;
>>
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to mnemosyne-proj-users@googlegro
>> ups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/mnemosyne-proj-users/d1ec5545-8d89-470d-83ea-21b0242990f
>> d%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
> --
> 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-users+unsubscr...@googlegroups.com.
To post to this group, send email to mnemosyne-proj-users@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.
For more options, visit https://groups.google.com/d/optout.


RE: [mnemosyne-proj-users] Re: Is it possible to create a link or button for an audio file?

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  
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 
>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
>
>becomes in windows:
>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
>
>type="text/javascript">document.myform.outputtext.value =
>document.documentElement.outerHTML;
>
>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+unsubscr...@googlegroups.com.
>To post to this group, send email to
>mnemosyne-proj-users@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.
>
>-- 
>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-users+unsubscr...@googlegroups.com.
>To post to this group, send email to
>mnemosyne-proj-users@googlegroups.com.
>To view this discussion on the web visit
>https://groups.google.com/d/msgid/mnemosyne-proj-users/791fdf2c66b54594b77127efff6f5d8f%40xmail101.UGent.be.
>For more options, visit https://groups.google.com/d/optout.

-- 
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-users+unsubscr...@googlegroups.com.
To post to this group, send email to mnemosyne-proj-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/FDC6CB70-C6E7-4823-A4EE-DB8EF251763B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: [mnemosyne-proj-users] Re: Is it possible to create a link or button for an audio file?

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 
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

becomes in windows:


You can see this by inserting this code together with the audio tag in the card

document.myform.outputtext.value = 
document.documentElement.outerHTML;

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+unsubscr...@googlegroups.com.
To post to this group, send email to 
mnemosyne-proj-users@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.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to mnemosyne-proj-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/791fdf2c66b54594b77127efff6f5d8f%40xmail101.UGent.be.
For more options, visit https://groups.google.com/d/optout.


Re: [mnemosyne-proj-users] Re: Is it possible to create a link or button for an audio file?

Or you can split this up into 2 cards... 

Peter 

On 5 June 2015 23:22:07 CEST, Gnome jippija...@hotmail.com wrote:
Have you tried HTML audio controls?

http://www.w3schools.com/html/html5_audio.asp



fredag 5. juni 2015 22.16.01 UTC+2 skrev si1va...@aol.com følgende:

 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. 


-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to
mnemosyne-proj-users@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/703dc2b1-ff83-461c-b304-bd45d26a29f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to mnemosyne-proj-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mnemosyne-proj-users/CF5DA13D-CFD6-4FEF-BAB1-FF9AF6E71E2F%40UGent.be.
For more options, visit https://groups.google.com/d/optout.