I'm making a program to learne english and french.
I have a database of words in my language - portuguese - and i have a code to play the translated words, but how i translate the portuguese words to a appropriate language?
FUNCTION FALAR(texto$)
url_file$="http://translate.google.com/translate_tts?ie=utf-8&tl=fr&q=" + texto$
file$="temp.mp3"
IF file exist(file$) THEN delete file file$
LOAD DLL "urlmon",1
status=CALL DLL(1,"URLDownloadToFileA",0,url_file$,file$,0,0)
DELETE DLL 1
IF file exist(file$)
LOAD MUSIC file$,1
PLAY MUSIC 1
WHILE music playing(1)=1
ENDWHILE
DELETE MUSIC 1
ENDIF
ENDFUNCTION
Better than do is try