You need to add the user agent string so you aren't told to be coming from CURL. Your code in the loop should be like this:
$url = "https://translate.google.com/translate_tts?tl=en&q=".$value;
if ($name == 0)
$fp = fopen("sound/combined.mp3","w");
else
$fp = fopen("sound/temp".$name.".mp3","w");
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36');
$data = curl_exec($ch);
curl_close($ch);
fclose($fp);