How to play audio files with Pharo ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

How to play audio files with Pharo ?

kilon.alios
I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.

I assume that playback of MP3 is out of the question ?

Any ideas /suggestions ?
Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

EstebanLM
You have this:

http://catalog.pharo.org/catalog/project/PharoSound

cheers,
Esteban

> On 18 Nov 2015, at 11:49, Dimitris Chloupis <[hidden email]> wrote:
>
> I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.
>
> I assume that playback of MP3 is out of the question ?
>
> Any ideas /suggestions ?


Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

MerwanOuddane
In reply to this post by kilon.alios
This summer I made a wav parser, there is an example to play wav files
with OpenAL.

https://pharoweekly.wordpress.com/2015/08/23/wav-parser-available/

Cheers,
Merwan

On 18/11/2015 15:49, Dimitris Chloupis wrote:
> I want a cross platform solution for playing audio files for my
> project ChronosManager. By cross platform I mean MacOS, Ubuntu and
> Windoom.
>
> I assume that playback of MP3 is out of the question ?
>
> Any ideas /suggestions ?


Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

Peter Kenny
In reply to this post by kilon.alios

Hello

 

If you read https://pharoweekly.wordpress.com/2015/07/04/google-speech-engine/, there is a reference to playing back the .mp3 output of the Google speech engine. I can’t find the package referred to with the class StreamingMP3Sound; maybe Sean deNigris can help?

 

Hope this helps

 

Peter Kenny

 

 

From: Pharo-users [mailto:[hidden email]] On Behalf Of Dimitris Chloupis
Sent: 18 November 2015 14:50
To: Any question about pharo is welcome <[hidden email]>
Subject: [Pharo-users] How to play audio files with Pharo ?

 

I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.

I assume that playback of MP3 is out of the question ?

Any ideas /suggestions ?

Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

Clément Béra
In reply to this post by MerwanOuddane
PharoSound was not working on Mac on my machine a few month ago. It was reported to be working on the Raspberry Pie and windows.

2015-11-18 12:23 GMT-03:00 Merwan Ouddane <[hidden email]>:
This summer I made a wav parser, there is an example to play wav files with OpenAL.

https://pharoweekly.wordpress.com/2015/08/23/wav-parser-available/

Cheers,
Merwan


On 18/11/2015 15:49, Dimitris Chloupis wrote:
I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.

I assume that playback of MP3 is out of the question ?

Any ideas /suggestions ?



Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

kilon.alios
In reply to this post by EstebanLM
thank you I just tried PharoSound and works great on MacOS tomorrow will try Ubuntu :)

Thanks also to the rest of you for your suggestions

On Wed, Nov 18, 2015 at 5:02 PM Esteban Lorenzano <[hidden email]> wrote:
You have this:

http://catalog.pharo.org/catalog/project/PharoSound

cheers,
Esteban

> On 18 Nov 2015, at 11:49, Dimitris Chloupis <[hidden email]> wrote:
>
> I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.
>
> I assume that playback of MP3 is out of the question ?
>
> Any ideas /suggestions ?


Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

EstebanLM
In reply to this post by Clément Béra

On 18 Nov 2015, at 13:31, Clément Bera <[hidden email]> wrote:

PharoSound was not working on Mac on my machine a few month ago. It was reported to be working on the Raspberry Pie and windows.

It works on mine, I made a couple of fixes to make it possible :)


2015-11-18 12:23 GMT-03:00 Merwan Ouddane <[hidden email]>:
This summer I made a wav parser, there is an example to play wav files with OpenAL.

https://pharoweekly.wordpress.com/2015/08/23/wav-parser-available/

Cheers,
Merwan


On 18/11/2015 15:49, Dimitris Chloupis wrote:
I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.

I assume that playback of MP3 is out of the question ?

Any ideas /suggestions ?




Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

kilon.alios
thank you Esteban, it works on my IMac too :)

but on Ubuntu I am getting this error

sound_Start(default) soundStart: snd_add_pcm_handler: Function not implemented sound_Start(default) soundStart: snd_add_pcm_handler: Function not implemented

On Thu, Nov 19, 2015 at 1:04 PM Esteban Lorenzano <[hidden email]> wrote:
On 18 Nov 2015, at 13:31, Clément Bera <[hidden email]> wrote:

PharoSound was not working on Mac on my machine a few month ago. It was reported to be working on the Raspberry Pie and windows.

It works on mine, I made a couple of fixes to make it possible :)


2015-11-18 12:23 GMT-03:00 Merwan Ouddane <[hidden email]>:
This summer I made a wav parser, there is an example to play wav files with OpenAL.

https://pharoweekly.wordpress.com/2015/08/23/wav-parser-available/

Cheers,
Merwan


On 18/11/2015 15:49, Dimitris Chloupis wrote:
I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.

I assume that playback of MP3 is out of the question ?

Any ideas /suggestions ?



Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

Nicolai Hess-3-2


2015-11-19 15:07 GMT+01:00 Dimitris Chloupis <[hidden email]>:
thank you Esteban, it works on my IMac too :)

but on Ubuntu I am getting this error

sound_Start(default) soundStart: snd_add_pcm_handler: Function not implemented sound_Start(default) soundStart: snd_add_pcm_handler: Function not implemented

12493 Sound should work on linux out of the box
you can try to use squeaks sound plugin on linux for pharo (vm-sound-pulse or vm-sound-OSS)

 

On Thu, Nov 19, 2015 at 1:04 PM Esteban Lorenzano <[hidden email]> wrote:
On 18 Nov 2015, at 13:31, Clément Bera <[hidden email]> wrote:

PharoSound was not working on Mac on my machine a few month ago. It was reported to be working on the Raspberry Pie and windows.

It works on mine, I made a couple of fixes to make it possible :)


2015-11-18 12:23 GMT-03:00 Merwan Ouddane <[hidden email]>:
This summer I made a wav parser, there is an example to play wav files with OpenAL.

https://pharoweekly.wordpress.com/2015/08/23/wav-parser-available/

Cheers,
Merwan


On 18/11/2015 15:49, Dimitris Chloupis wrote:
I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.

I assume that playback of MP3 is out of the question ?

Any ideas /suggestions ?




Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

kilon.alios
and how i do that exactly ?

On Thu, Nov 19, 2015 at 4:18 PM Nicolai Hess <[hidden email]> wrote:
2015-11-19 15:07 GMT+01:00 Dimitris Chloupis <[hidden email]>:
thank you Esteban, it works on my IMac too :)

but on Ubuntu I am getting this error

sound_Start(default) soundStart: snd_add_pcm_handler: Function not implemented sound_Start(default) soundStart: snd_add_pcm_handler: Function not implemented

12493 Sound should work on linux out of the box
you can try to use squeaks sound plugin on linux for pharo (vm-sound-pulse or vm-sound-OSS)

 

On Thu, Nov 19, 2015 at 1:04 PM Esteban Lorenzano <[hidden email]> wrote:
On 18 Nov 2015, at 13:31, Clément Bera <[hidden email]> wrote:

PharoSound was not working on Mac on my machine a few month ago. It was reported to be working on the Raspberry Pie and windows.

It works on mine, I made a couple of fixes to make it possible :)


2015-11-18 12:23 GMT-03:00 Merwan Ouddane <[hidden email]>:
This summer I made a wav parser, there is an example to play wav files with OpenAL.

https://pharoweekly.wordpress.com/2015/08/23/wav-parser-available/

Cheers,
Merwan


On 18/11/2015 15:49, Dimitris Chloupis wrote:
I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.

I assume that playback of MP3 is out of the question ?

Any ideas /suggestions ?



Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

kilon.alios
for the record I also tried wavParser on Ubuntu that fails too

Gofer new smalltalkhubUser: 'MerwanOuddane' project: 'WAVParser'; package: 'ConfigurationOfWAVParser'; load. (Smalltalk at: #ConfigurationOfWAVParser) loadBleedingEdge.

--> (Smalltalk at: #ALExamplesWAV) exampleBirdChirping

Generic failure NBFFICallout class>>signalError: NBFFICallout class(NBNativeCodeGen class)>>handleFailureIn:nativeCode: NBFFICalloutAPI>>function:emit: NativeBoostLinux32(NativeBoost)>>loadModule: NBFFICallout class(NBNativeCodeGen class)>>retrySend: OpenAL class>>loadLibrary OpenAL class>>isAvailable ALExamplesWAV>>readWAVFromStream: ALExamplesWAV class>>exampleBirdChirping UndefinedObject>>DoIt OpalCompiler>>evaluate RubSmalltalkEditor>>evaluate:andDo: RubSmalltalkEditor>>highlightEvaluateAndDo: [ textMorph textArea editor highlightEvaluateAndDo: ann action. textMorph shoutStyler style: textMorph text ] in [ textMorph textArea handleEdit: [ textMorph textArea editor highlightEvaluateAndDo: ann action. textMorph shoutStyler style: textMorph text ] ] in GLMMorphicPharoPlaygroundRenderer(GLMMorphicPharoCodeRenderer)>>actOnHighlightAndEvaluate: in Block: [ textMorph textArea editor highlightEvaluateAndDo...etc... RubEditingArea(RubAbstractTextArea)>>handleEdit: [ textMorph textArea handleEdit: [ textMorph textArea editor highlightEvaluateAndDo: ann action. textMorph shoutStyler style: textMorph text ] ] in GLMMorphicPharoPlaygroundRenderer(GLMMorphicPharoCodeRenderer)>>actOnHighlightAndEvaluate: in Block: [ textMorph textArea... WorldState>>runStepMethodsIn: WorldMorph>>runStepMethods WorldState>>doOneCycleNowFor: WorldState>>doOneCycleFor: WorldState>>doOneSubCycleFor: WorldMorph>>doOneSubCycle MenuMorph>>invokeModalAt:in:allowKeyboard: MenuMorph>>invokeModal: MenuMorph>>invokeModal [ :menu | menu setInvokingView: self editor. menu invokeModal. self changed. ^ true ] in RubEditingArea(RubAbstractTextArea)>>yellowButtonActivity: in Block: [ :menu | ... MenuMorph(Object)>>ifNotNilDo: RubEditingArea(RubAbstractTextArea)>>yellowButtonActivity: RubEditingArea(RubAbstractTextArea)>>mouseDown: RubEditingArea(Morph)>>handleMouseDown:

On Thu, Nov 19, 2015 at 4:23 PM Dimitris Chloupis <[hidden email]> wrote:
and how i do that exactly ?

On Thu, Nov 19, 2015 at 4:18 PM Nicolai Hess <[hidden email]> wrote:
2015-11-19 15:07 GMT+01:00 Dimitris Chloupis <[hidden email]>:
thank you Esteban, it works on my IMac too :)

but on Ubuntu I am getting this error

sound_Start(default) soundStart: snd_add_pcm_handler: Function not implemented sound_Start(default) soundStart: snd_add_pcm_handler: Function not implemented

12493 Sound should work on linux out of the box
you can try to use squeaks sound plugin on linux for pharo (vm-sound-pulse or vm-sound-OSS)

 

On Thu, Nov 19, 2015 at 1:04 PM Esteban Lorenzano <[hidden email]> wrote:
On 18 Nov 2015, at 13:31, Clément Bera <[hidden email]> wrote:

PharoSound was not working on Mac on my machine a few month ago. It was reported to be working on the Raspberry Pie and windows.

It works on mine, I made a couple of fixes to make it possible :)


2015-11-18 12:23 GMT-03:00 Merwan Ouddane <[hidden email]>:
This summer I made a wav parser, there is an example to play wav files with OpenAL.

https://pharoweekly.wordpress.com/2015/08/23/wav-parser-available/

Cheers,
Merwan


On 18/11/2015 15:49, Dimitris Chloupis wrote:
I want a cross platform solution for playing audio files for my project ChronosManager. By cross platform I mean MacOS, Ubuntu and Windoom.

I assume that playback of MP3 is out of the question ?

Any ideas /suggestions ?



Reply | Threaded
Open this post in threaded view
|

Re: How to play audio files with Pharo ?

Sean P. DeNigris
Administrator
In reply to this post by Peter Kenny
Peter Kenny wrote
maybe Sean deNigris can help?
Does anything from this thread help? http://forum.world.st/Music-in-Pharo-td4835737.html#a4835742
Cheers,
Sean