// FLUENCY WEBAPI - Standard controls
// Javascript interface
// Copyright 2009 Fluency, Amsterdam. All rights reserved
// http://www.fluency.nl

// USAGE: load after speak.js

function getVoice() {

	var vb = document.getElementById("voiceBox");
	return vb.options[vb.selectedIndex].text
}

function speakMessagesId() {

	return document.getElementById("speakMessages").id;
}

// embed default interface
document.write("<input type='button' value='Lees selectie' ");
document.write("onclick='speakSelection(getVoice(), speakMessagesId())' /> ");
document.write("<input type='button' value='Stop' onclick='stopSpeaking()' /> ");
document.write("<select id='voiceBox'> ");
document.write("<option selected='true'>Arthur</option> ");
document.write("<option>Fiona</option> ");
document.write("<option>Dav&iacute;d</option> ");
document.write("<option>Miriam</option> ");
document.write("<option>Marco</option> ");
document.write("<option>Janneke</option> ");
document.write("<option>Rob</option> ");
document.write("<option>Giovanni</option> ");
document.write("<option>Koen</option> ");
document.write("<option>Dirk (Vlaams)</option> ");
document.write("<option>Sanghita</option> ");
document.write("<option>Fluisterstem</option> ");
document.write("</select> ");

// embed span element for status and error messages
document.write("<br><span id='speakMessages' class='speakMessages'></span>");


