16.08.2010, 13:45
Idea by FjortizFredde but he takes a long time soo....
Put this anywhere in your script.
Now to use this, simply use
Now, as with any other stock function you have to figure out on your own how to use It
further, but It can also be used with strings etc, just like any function.
OBS! You need this for It to work, and #include It in your gamemode!
https://sampforum.blast.hk/showthread.php?tid=82162
(Audio Plugin)
pawn Код:
stock TextToSpeech(playerid,text[])
{
new url[256];
format(url, sizeof(url), "http://translate.******.com/translate_tts?tl=en&q=%s",text);
Audio_PlayStreamed(playerid,url,false,false,false);
return 1;
}
Now to use this, simply use
pawn Код:
TextToSpeech(playerid,"THE TEXT YOU WANT");
further, but It can also be used with strings etc, just like any function.
pawn Код:
// JUST AN EXAMPLE
new string[128];
format(string, sizeof(string), "PM from %s says %s",sendername,pmtext);
TextToSpeech(receiverid,string);
https://sampforum.blast.hk/showthread.php?tid=82162
(Audio Plugin)