r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Red] Red language group

Kaj
10-Aug-2011
[2925x2]
No, in SDL in 24 bits modes
I can finally paint a pixel in any video mode, but the SDL example 
for 24 bits is broken, and I've also hit another bug in Red
Dockimbel
10-Aug-2011
[2927]
Nice! Waiting for your bug report...
Kaj
10-Aug-2011
[2928x2]
Got to analyse it first
I can't analyse them as fast as you fix them :-)
Dockimbel
10-Aug-2011
[2930]
Fortunately for me ;-)
Kaj
10-Aug-2011
[2931x5]
It's up. This was the hardest to trace until now
All video modes also work on Syllable
I'm happy to report that raw SDL performance is almost twice as fast 
on Syllable as on Linux: a rendering that takes five seconds on Linux 
with X11 takes three on Syllable
This is on the same machine, in the same resolution, with hardware 
specific drivers installed on each
Also, dragging the window during the rendering doesn't visibly slow 
down the rendering on Syllable, while it clearly stutters on Linux
Gregg
11-Aug-2011
[2936]
That's fantastic Kaj.
Kaj
11-Aug-2011
[2937x2]
I can read a bitmap image now and blit it to the screen
http://web.syllable.org/images/screenshots/Desktop/0.6.6/Red-SDL-binding-on-SyllableDesktop-0.6.6.png
GrahamC
12-Aug-2011
[2939]
Impressive
Endo
12-Aug-2011
[2940]
That's cool!
Dockimbel
12-Aug-2011
[2941x2]
http://www.colineau.fr/rebol/downloads/demoTTS_Red.zip


Demo of a dialog, using the Google TTS api.

a custom dll has been 
written, based on the reference :
http://www.codeproject.com/KB/audio-video/GoogleTTS-Ebook-Reader.aspx

This demo is only executable under windows, and requests an Internet 
link

Tested with Windows XP and red/system 0.2.1

compilation: do/args 
%rsc.r 
%demoTTS.reds -t Windows"
Nice little demo and works very well.
Kaj
12-Aug-2011
[2943]
I've tested that my bindings are still compatible with the new release
Dockimbel
12-Aug-2011
[2944]
Good to know.
Kaj
12-Aug-2011
[2945]
Ooh, Text To Speech. Nice!
Dockimbel
12-Aug-2011
[2946x2]
Yeah, good complement to your gfx binding to make a nice demo for 
the SFD 201. :-)
2011
Kaj
12-Aug-2011
[2948]
I assume it's Windows code? I wouldn't be interested in it, but you 
can
Dockimbel
12-Aug-2011
[2949x2]
The DLL is compiled for Windows, but maybe jocko could build it for 
Linux or Syllable too.
Or you can just make a wrapper on Google's TTS service using the 
cURL binding.
Kaj
12-Aug-2011
[2951x4]
If he ported that C++ code, it's bound to Windows. But yes, it could 
be done with cURL. Leaves the small matters of binding sound in SDL 
and MP3 decoding :-)
From the Windows article:
Unknown languages are not played but you can make a lot of substitutions 
like let's say 

nl" do "de" etc. Mix sentences in different languages just for fun 
;)"
If you want to make Dutch people angry, you should do that...
Dockimbel
12-Aug-2011
[2955]
Cross-posting jocko's reply from RebelBB french forum: 

There are two steps in this DLL: 


- first send a request to the Google api, for instance : http://translate.google.com/translate_tts?tl=en&q=hello+world
Google returns an audio file : translate_tts.mp3


- second, automatically open this file and play it. I use a DirectXShow 
filter (windows only), directly able to render the url. In the case 
of Linux, cUrl could do the first step, and, for instance VLC the 
second
Bas
12-Aug-2011
[2956]
As Nenad allready mentioned, he will give a presentation about Red 
during Software Freedom Day 2011, wednesday 14th september, at the 
Centrum Wiskunde & Informatica (CWI), Science Park Amsterdam: http://www.softwarefreedomday.eu/
GrahamC
12-Aug-2011
[2957]
TTS ...  nice.
Kaj
12-Aug-2011
[2958]
Actually, my bindings don't work anymore with 0.2.1; they only compile
shadwolf
12-Aug-2011
[2959x2]
keep the good work :)
/me adds pixels too :P
Dockimbel
13-Aug-2011
[2961x3]
Thanks.
Kaj: it seems I have introduced a regression on logic! handling in 
last commits. I will fix that asap.
Kaj: issue should be fixed now, I have added a couple new tests to 
avoid new regressions for such returned values.
Kaj
13-Aug-2011
[2964]
Thanks! Logic! returns work again, but now I have another problem
Dockimbel
13-Aug-2011
[2965x2]
I'm on it.
Issue fixed.
Kaj
13-Aug-2011
[2967]
Thanks. Everything is peaceful again in paradise
Dockimbel
13-Aug-2011
[2968]
Good! :) I will finally have some time to spend on the AVR port.
Kaj
13-Aug-2011
[2969x2]
I hope so. I see a cload coming, but maybe it will drift past :-)
cloud
Kaj
14-Aug-2011
[2971]
I've updated my bindings to the new PRINT form and marked them as 
needing the latest Red/System
Dockimbel
14-Aug-2011
[2972]
Makes me think that having the release version stored in compiler 
and enforcing a header NEED: field might help...
Kaj
14-Aug-2011
[2973x2]
Probably. I was recently looking for the compiler version, but couldn't 
find it
It would have to be quite precise, though. Currently, the first 0.2.1 
release won't do due to the bugs