Discussion:
how to enrich a linguistic app using CIAO with with sound and picture
o***@mailoo.org
2014-07-26 19:40:49 UTC
Permalink
Hi Jose

Your answer is in my view very important and very good for all user
being operating with texts! Thank you very much! Probably it is also
included in the manual but it is very difficult to find the item of
manual...

For people willing to treat linguistic problems and making them
attractive for other people, two or three things can help a lot:

- show a jpeg picture of the object of the word or fact being related by
the sentence

- send a wave file (or mp3), to show or check how to pronounce.

How to send both to the standard output and

- clear the screen (as far as probably needed)

before to continue the dialogue?

Kind regards
o***@mailoo.org
2014-07-26 19:58:16 UTC
Permalink
Hi

Sorry - I did forget: in a Linux system !

Kind regards
Post by o***@mailoo.org
Hi Jose
Your answer is in my view very important and very good for all user being operating with texts! Thank you very much! Probably it is also included in the manual but it is very difficult to find the item of manual...
- show a jpeg picture of the object of the word or fact being related by the sentence
- send a wave file (or mp3), to show or check how to pronounce.
How to send both to the standard output and
- clear the screen (as far as probably needed)
before to continue the dialogue?
Kind regards
Jose F. Morales
2014-08-04 07:35:55 UTC
Permalink
Post by o***@mailoo.org
Hi Jose
Your answer is in my view very important and very good for all user being
operating with texts! Thank you very much! Probably it is also included in
the manual but it is very difficult to find the item of manual...
For people willing to treat linguistic problems and making them attractive
- show a jpeg picture of the object of the word or fact being related by the
sentence
- send a wave file (or mp3), to show or check how to pronounce.
How to send both to the standard output and
- clear the screen (as far as probably needed)
before to continue the dialogue?
Thanks for your kind comments!

Regarding your suggestion for linguistic applications, I am not sure
if I understand well the context. Clearly, playing sounds and showing
images is possible when writing full graphical user interfaces (where
one of the most portable ways is using the browser as a backend with
the HTML libraries).

Sound and images are a bit different to handle. Sounds are easy to
play using external libraries or programs (e.g., system('afplay
hello.mp3') in Mac OS X). Images can be displayed in new windows in a
similar way. Some useful commands are:

- afplay : play sounds on Mac OS X
- mpg123 : equivalent for Linux (may not be installed by default)
- open : open documents on Mac OS X (useful for images)
- xdg-open : equivalent for Linux
- say : text-to-speech on Mac OS X
- festival : equivalent for Linux (may not be installed by default)

Displaying images inline in the Ciao toplevel is more difficult, but
possible with some elisp magic.
--
Jose
Loading...