![](https://secure.gravatar.com/avatar/abcf726e8937bab9f50babda19270124.jpg?s=120&d=mm&r=g)
Dear all, In the next weeks I will make some presentations in which I will use audio examples. More my course on audio will start soon. Obviously, I want to use context. How can I link to audio files? I tried once but wasn't able to get any result. Could anyone post a little code snippet to exemplify? (Or maybe send me a link to existing resources) Thanks a lot as usual Best -a- Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http://www.semiotiche.it/andrea andrea.valle@unito.it
![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
On 2/10/06, andrea valle
Dear all,
In the next weeks I will make some presentations in which I will use audio examples. An example. (it come from Hans, so it's not mine, but I love it) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \setupinteraction [state=start,
color=]
\setupcolors [state=start] \startJSpreamble speech used now function SpeakToMe(str) { tts.qText(str) ; tts.talk() ; } \stopJSpreamble \starttext \startsetups[text] For millions of years mankind lived just like the animals. Then something happened which unleashed the power of our imagination. We learned to talk. \stopsetups \startbuffer[text] For millions of years mankind lived just like the animals. Then something happened which unleashed the power of our imagination. We learned to talk. \stopbuffer % Steve Hawkins Division Bell Pink Floyd \startTEXpage \button [width=fit,height=fit,align=middle,offset=1em, frame=off,foregroundcolor=middleblue, background=color,backgroundcolor=middleyellow] {\nohyphens \getbuffer[text]} [JS(SpeakToMe{{\directsetup{text}}}] \stopTEXpage \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%5
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
andrea valle wrote:
Dear all,
In the next weeks I will make some presentations in which I will use audio examples. More my course on audio will start soon. Obviously, I want to use context. How can I link to audio files?
I tried once but wasn't able to get any result. Could anyone post a little code snippet to exemplify?
(Or maybe send me a link to existing resources)
Thanks a lot as usual
\externalfigure[whatever.mov] \externalfigure[whatever.wav] or mp3's: \useexternalrendering [stepsound] [audio/mpeg] [stepsound.mp3] [] \definereference [StartSoundTrack] [StartRendering{stepsound}] \definereference [StopSoundTrack] [StopRendering{stepsound}] ... \goto{use ear protection}[StartSoundTrack] Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/abcf726e8937bab9f50babda19270124.jpg?s=120&d=mm&r=g)
Thanks Hans, I had this: \starttext Test \externalfigure[1-01-bell.wav] \stoptext Is it enough? What should the output be? I obtain in place of externalfigure the grey-"trouble-here"-square with name:dummy file:1-01-bell.wav state:unknown. Thanks -a- On 10 Feb 2006, at 16:00, Hans Hagen wrote:
\externalfigure[whatever.wav]
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
andrea valle wrote:
Thanks Hans, I had this:
\starttext Test \externalfigure[1-01-bell.wav]
\stoptext
Is it enough? What should the output be?
hm, wrong command,
I obtain in place of externalfigure the grey-"trouble-here"-square with name:dummy file:1-01-bell.wav state:unknown.
\setupinteraction[state=start] \starttext \useexternalsoundtrack [slam] [doorslam.wav] \goto{whatever}[StartSound{slam}] \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
andrea valle wrote:
Ahah! Chic. Thanks Hans.
(
hm, wrong command,
Just for my curiosity: what do you mean? I supposed to use the command you wrote me. Have I missed something or was it a bug?
No bug, contrary to a movie or avi file a wav file is just a resource, so it has its own command. I mixed things up when suggesting a solution. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/abcf726e8937bab9f50babda19270124.jpg?s=120&d=mm&r=g)
(thanks for the explanation) Best -a- On 14 Feb 2006, at 00:44, Hans Hagen wrote:
andrea valle wrote:
Ahah! Chic. Thanks Hans.
(
hm, wrong command,
Just for my curiosity: what do you mean? I supposed to use the command you wrote me. Have I missed something or was it a bug?
No bug, contrary to a movie or avi file a wav file is just a resource, so it has its own command. I mixed things up when suggesting a solution.
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino http://www.semiotiche.it/andrea andrea.valle@unito.it
participants (3)
-
andrea valle
-
Hans Hagen
-
luigi scarso