From: <Joe...@la...> - 2008-01-30 08:36:23
|
A late happy new year wish to all, I get a malloc error when I try to use the phonemesFromText method of =20= the NSSpeechSynthesizer class. ----test irb---- Villon:~ brogniar$ irb >> require 'osx/cocoa' =3D> true >> puts OSX::RUBYCOCOA_VERSION 0.12.0 =3D> nil >> include OSX =3D> Object >> speaker =3D NSSpeechSynthesizer.alloc.init =3D> #<OSX::NSSpeechSynthesizer:0x297d4a class=3D'NSSpeechSynthesizer' =20= id=3D0x1b81790> >> text =3D "abc" =3D> "abc" >> phonemes =3D speaker.phonemesFromText(text) (1314,0xa0371f60) malloc: *** mmap(size=3D2442014720) =20= failed (error code=3D12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug =3D> nil >> text =3D NSString.alloc.init("abc") =3D> #<OSX::NSCFString:0x294faa class=3D'NSCFString' id=3D0xa07b0258> >> phonemes =3D speaker.phonemesFromText(text) (1314,0xa0371f60) malloc: *** mmap(size=3D3221200896) =20= failed (error code=3D12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug =3D> nil >> -------------- I can use the startSpeakingString without problem. Am I doing =20 something wrong? Yours, Jo=EBl Brogniart= |