Embedding audio

441 views
Skip to first unread message

Chris Jordan

unread,
Mar 17, 2015, 12:45:39 PM3/17/15
to tiddl...@googlegroups.com
How may I embed audio in a tiddler?

Getting Started http://i.imgur.com/XZrn5M6.png says:

Embedded Audio

Small audio files can be embedded directly within TiddlyWiki. Embedding isn't suitable for large files (over a few hundred kilobytes) because it increases the size of the TiddlyWiki file.

For example, the tiddler TiddlyWiki.mp3 contains an MP3 recording of the word "TiddlyWiki". If you visit that tiddler, you should see an audio player that will play back the recording.

but ever the example there of embedding audio fails to actually say how to embed audio.

Thanks.

Jed Carty

unread,
Mar 17, 2015, 1:10:49 PM3/17/15
to tiddl...@googlegroups.com
You use a _canonical_uri field.
There are some details here http://inmysocks.tiddlyspot.com/#Embedding%20Audio

Also you can get a link to a specific tiddler by clicking on the down arrow in the top right corner of the tiddler and clicking on permalink, the browser url will then be for that tiddler. This may save you some time.

Gmail native address - please do not use! Send instead to chrisjj@chrisjj.com. Thanks!

unread,
Mar 17, 2015, 9:06:38 PM3/17/15
to tiddlywiki
Jed

You use a _canonical_uri field. 
There are some details here http://inmysocks.tiddlyspot.com/#Embedding%20Audio

Thanks, but that says a _canonical_uri is for external files.

Re embedding files, I see only: 

Similar to embedding images you have have audio added to the wiki file by dragging and dropping the audio file into the browser, 

Can it really be that audio embedding requires a mouse? I.e. cannot by done by keyboard? On Chromes here, CTRL+C, CTRL+V doesn't succeed.

And in fact here (Chrome), the mouse operation doesn't work either. I get

You have unsaved changes in TiddlyWiki
Are you sure you want to leave this page?


Also you can get a link to a specific tiddler by clicking on the down arrow in the top right corner of the tiddler and clicking on permalink,  the browser url will then be for that tiddler. This may save you some time.

Thanks.


Richard Smith

unread,
Mar 18, 2015, 12:07:37 AM3/18/15
to tiddl...@googlegroups.com
Hi Chris,

I downloaded a sample from here http://soundbible.com/1778-Cow-Moo.html and was able to drag it into TW (chrome, mac-os) with no problem.

If keyboards are more your thing, you can also get it in there using the import button in the tools menu of the sidebar.

The unsaved-wiki warning suggests that you are dropping the file onto the wrong part of the page and the browser is trying to navigate to it - you should see a green bar at the top of the page which is the 'dropzone' for importing files by drag, aim for that.

It doesn't appear that .m4a files are supported and I managed to crash chrome by dragging one in, big files will slow TW down too much - the documentation for audio files does seem to be in need of improvement.

Hope that helps a bit. What is your project?

Regards,
Richard

Peter Miller

unread,
May 14, 2015, 9:35:32 AM5/14/15
to tiddl...@googlegroups.com
I'm having issues with embedded audio using the moo file (shows as mpeg/audio) in a fresh 5.1.8 wiki in both Firefox (transcluded tiddler shows brief flash of html5 widget) and Chrome (widget appears but audio is disabled). Win 8.1. Use case is providing brief audio feedback to students during grading.

Jeremy Ruston

unread,
May 14, 2015, 12:23:33 PM5/14/15
to TiddlyWiki
Hi Peter

On Thu, May 14, 2015 at 2:35 PM, Peter Miller <pmi...@liv.ac.uk> wrote:
I'm having issues with embedded audio using the moo file (shows as mpeg/audio) in a fresh 5.1.8 wiki in both Firefox (transcluded tiddler shows brief flash of html5 widget) and Chrome (widget appears but audio is disabled). Win 8.1. Use case is providing brief audio feedback to students during grading.

I'm not familiar with "moo" files, can you provide a reference? Do other audio file formats work as expected?

Best wishes

Jeremy.

 


On Tuesday, March 17, 2015 at 4:45:39 PM UTC, Chris Jordan wrote:
How may I embed audio in a tiddler?

Getting Started http://i.imgur.com/XZrn5M6.png says:

Embedded Audio

Small audio files can be embedded directly within TiddlyWiki. Embedding isn't suitable for large files (over a few hundred kilobytes) because it increases the size of the TiddlyWiki file.

For example, the tiddler TiddlyWiki.mp3 contains an MP3 recording of the word "TiddlyWiki". If you visit that tiddler, you should see an audio player that will play back the recording.

but ever the example there of embedding audio fails to actually say how to embed audio.

Thanks.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c04b85da-a57c-4988-8fe0-7d6d82ea64a9%40googlegroups.com.

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



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Peter Miller

unread,
May 14, 2015, 5:31:22 PM5/14/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Apologies, Jeremy, but that was just my referring in abbreviated fashion to the same file that Richard Smith used (see above).

I have played around a little more. The TiddlyWiki.mp3 file from tiddlywiki.com works fine after transclusion; the widget appears and the file plays as expected. Somewhat bizarrely, the widget for the previously imported moo.mp3 file shows up as soon as you drag-and-drop the Audio tiddler from tiddlywiki.com though it still refuses to play though not obviously disabled. The wav and ogg formats do not appear to be recognised as audio. What works like a charm, however, is m4a format. I can record a 25 second clip, import and play it without problems.

Best wishes

Peter

Peter Miller

unread,
May 15, 2015, 3:58:36 AM5/15/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
While appreciating that having large audio clips embedded in TiddlyWiki is not sensible, curiosity drives me to ask whether anyone has explored the possibility of recording audio inside TiddlyWiki?

Best wishes

Peter

Jeremy Ruston

unread,
May 15, 2015, 4:14:08 AM5/15/15
to Peter Miller, TiddlyWiki
Hi Peter

> Somewhat bizarrely, the widget for the previously imported moo.mp3 file shows up as soon as you drag-and-drop the Audio tiddler from tiddlywiki.com though it still refuses to play though not obviously disabled.

That's weird, can you reproduce that behaviour?

On Fri, May 15, 2015 at 8:58 AM, Peter Miller <pmi...@liv.ac.uk> wrote:
While appreciating that having large audio clips embedded in TiddlyWiki is not sensible, curiosity drives me to ask whether anyone has explored the possibility of recording audio inside TiddlyWiki?

There are JavaScript APIs in the browser for recording audio but annoyingly they produce an uncompressed stream (just like a .WAV file), and so are many times larger than an MP3 file.

Best wishes

Jeremy.

Peter Miller

unread,
May 15, 2015, 4:20:02 AM5/15/15
to tiddl...@googlegroups.com, pmi...@liv.ac.uk, jeremy...@gmail.com
I'll have another go over the weekend and check out Chrome as well.

Best wishes

Peter
Reply all
Reply to author
Forward
0 new messages