<?xml version="1.0" encoding="UTF-8"?>
<config-description:config-descriptions
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
	xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">

	<config-description uri="system:voice">
		<parameter name="defaultTTS" type="text">
			<label>Default Text-to-Speech</label>
			<description>The default text-to-speech service to use if no other is specified.</description>
		</parameter>
		<parameter name="defaultSTT" type="text">
			<label>Default Speech-to-Text</label>
			<description>The default speech-to-text service to use if no other is specified.</description>
		</parameter>
		<parameter name="defaultVoice" type="text">
			<label>Default Voice</label>
			<description>The default voice to use if no specific TTS service or voice is specified.</description>
		</parameter>
		<parameter name="defaultHLI" type="text">
			<label>Default Human Language Interpreter</label>
			<description>The default human language interpreter to use if no other is specified.</description>
		</parameter>
		<parameter name="defaultKS" type="text">
			<label>Default Keyword Spotter</label>
			<description>The default keyword spotting service to use if no other is specified.</description>
		</parameter>
		<parameter name="keyword" type="text">
			<label>Magic Word</label>
			<description>The magic word to spot before initiating a dialog.</description>
		</parameter>
		<parameter name="listeningItem" type="text">
			<context>item</context>
			<filter>
				<criteria name="type">Switch</criteria>
			</filter>
			<label>Listening Switch</label>
			<description>If provided, the item will be switched on during the period when the dialog processor has spotted the
				keyword and is listening for commands.</description>
		</parameter>
		<parameter name="listeningMelody" type="text">
			<options>
				<option value="Bb">Bb</option>
				<option value="F#">F#</option>
				<option value="E">E</option>
			</options>
			<limitToOptions>false</limitToOptions>
			<label>Listening Melody</label>
			<description>A melody to be played to advertise the user the dialog processing is going to start, leave empty to
				disable it. (Spaced separated list of notes. Example: "A O:100 A':50")</description>
		</parameter>
		<parameter name="enableCacheTTS" type="boolean">
			<label>Enable TTS caching</label>
			<description>true to allow TTS services to cache audio files on disk.</description>
			<default>true</default>
		</parameter>
		<parameter name="cacheSizeTTS" type="integer">
			<label>TTS Cache Size</label>
			<description>The limit size of the TTS cache (in kB).</description>
			<default>10240</default>
		</parameter>
		<parameter name="maxTextLengthCacheTTS" type="integer">
			<label>TTS Cache Maximum Text Length</label>
			<description>The maximum length of texts handled by the TTS cache (in character). If exceeded, will pass the text to
				the TTS without storing it. 0 for no limit.</description>
			<default>150</default>
		</parameter>
	</config-description>

</config-description:config-descriptions>
