<?php
$timestamp = time();
?>
<!DOCTYPE html>
<html>
<head>
<title>Google_TTS Class Multiple Instance Example</title>
<meta charset="UTF-8" />
</head>
<body>
<h2>Voice of the word: Hi guys.</h2>
<audio controls>
<source src="sound.php?lang=en&word=Hi guys.&unique=<?=$timestamp;?>" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<br />
<h2>Voice of the word: example</h2>
<audio controls>
<source src="sound.php?lang=en&word=example&unique=<?=$timestamp;?>" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<br />
<h2>Voice of the word: Even more text</h2>
<audio controls>
<source src="sound.php?lang=en&word=Even more text&unique=<?=$timestamp;?>" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
|