brailcom/speechd

Make module express their features

开放

#904 创建于 2024年4月28日

 (0 条评论) (0 个反应) (0 位负责人)C (86 个派生)auto 404
enhancementhelp wanted

仓库指标

星标
 (325 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is your feature request related to a problem? Please describe. The server code has hardcoded lists such as

		int punct_missing = 0;
		if (strcmp(output->name, "flite") == 0 ||
		    strcmp(output->name, "dtk-generic") == 0 ||
		    strcmp(output->name, "epos-generic") == 0 ||
		    strcmp(output->name, "llia_phon-generic") == 0 ||
		    strcmp(output->name, "mary-generic") == 0 ||
		    strcmp(output->name, "swift-generic") == 0 ||
		    strcmp(output->name, "pico") == 0)
			/* These don't support punctuation */
			/* FIXME: rather make them express it */
			punct_missing = 1;

Describe the solution you'd like The modules should expose their features to the server. We'd want that after initialization. This could be a new command that the server sends to the module to get a feature list, which could be a mere list of lines. The features that the server doesn't understand can be ignored, and if the client says it doesn't support the command, we can assume that it doesn't support the features.

That would probably be useful for exposing the punctuation support as mentioned above, but also ssml support, see #905

贡献者指南