mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-10 08:53:45 +00:00
More work on audio prompts.
This commit is contained in:
parent
b9ebdee601
commit
196908bedc
10 changed files with 272 additions and 13 deletions
|
|
@ -250,13 +250,15 @@ int CDMRGateway::run()
|
|||
|
||||
CVoice* voice = NULL;
|
||||
if (m_conf.getVoiceEnabled()) {
|
||||
std::string language = m_conf.getVoiceLanguage();
|
||||
std::string language = m_conf.getVoiceLanguage();
|
||||
std::string directory = m_conf.getVoiceDirectory();
|
||||
|
||||
LogInfo("Voice Parameters");
|
||||
LogInfo(" Enabled: yes");
|
||||
LogInfo(" Language: %s", language.c_str());
|
||||
LogInfo(" Directory: %s", directory.c_str());
|
||||
|
||||
voice = new CVoice(language, xlxSlot, xlxTG);
|
||||
voice = new CVoice(directory, language, m_repeater->getId(), xlxSlot, xlxTG);
|
||||
|
||||
bool ret = voice->open();
|
||||
if (!ret) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue