Voice alerts test build

More
26 Feb 2018 05:17 - 26 Feb 2018 06:37 #67776 by vlad_vy
Replied by vlad_vy on topic Voice alerts test build
I don't understand why it can happen. The drawn background don't touch anything related to audio. Probably extended audio device with drawn background hasn't time to properly initialize and the startup sound AUDIO_SetVolume() do nothing.

What transmitter do you use? Probably we need increase startup delay at "main.c" to 2000 with drawn background.
    // Add startup delay to make sure audio player is initialized
    // AUDIO_Init() has already been called by CONFIG_ReadModel()
#if HAS_EXTENDED_AUDIO
    audio_queue_time = CLOCK_getms() + 1500;
    num_audio=1;
    next_audio=1;
    AUDIO_SetVolume(); // Initial setting of voice volume
#endif
to

    // Add startup delay to make sure audio player is initialized
    // AUDIO_Init() has already been called by CONFIG_ReadModel()
#if HAS_EXTENDED_AUDIO
    audio_queue_time = CLOCK_getms() + 1500;
    #if (LCD_WIDTH == 480) || (LCD_WIDTH == 320)
        if(Display.background.drawn_background)
            audio_queue_time += 500;
    #endif
    num_audio=1;
    next_audio=1;
    AUDIO_SetVolume(); // Initial setting of voice volume
#endif
Last edit: 26 Feb 2018 06:37 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
26 Feb 2018 08:07 #67782 by pulpfiction15
Replied by pulpfiction15 on topic Voice alerts test build
@vlad-vy

I testested it on a devo 6.

Please Log in or Create an account to join the conversation.

More
26 Feb 2018 08:10 - 02 Mar 2018 04:04 #67783 by vlad_vy
Replied by vlad_vy on topic Voice alerts test build
Can you try this test build with added startup delay?

File deleted...
Last edit: 02 Mar 2018 04:04 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
26 Feb 2018 08:41 #67785 by pulpfiction15
Replied by pulpfiction15 on topic Voice alerts test build
@vlad-vy,

I am travelling and will only be able to test on Thursday evening, sorry.

Please Log in or Create an account to join the conversation.

More
01 Mar 2018 19:25 #67847 by pulpfiction15
Replied by pulpfiction15 on topic Voice alerts test build
@vlad-vy,

as promised, flashed your build deviation-devo6-v5.x.x-2018-02-26.zip, this did not help, same results.
With ' drawn_background=1' startup message is at maximum volume. :oops:

Please Log in or Create an account to join the conversation.

More
02 Mar 2018 04:07 - 03 Mar 2018 06:43 #67850 by vlad_vy
Replied by vlad_vy on topic Voice alerts test build
Will be better if extended audio developer Moeder look in to it.

Try next build - I added 0.2sec delay before MUSIC_Play(MUSIC_STARTUP):

File deleted...
Last edit: 03 Mar 2018 06:43 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
02 Mar 2018 18:47 - 02 Mar 2018 19:18 #67855 by pulpfiction15
Replied by pulpfiction15 on topic Voice alerts test build
@vlad-vy,

some improvement;

drawn_background=1 startup message somethimes maximum volume, somethimes at set volume
drawn_background=0 startup message normal
Last edit: 02 Mar 2018 19:18 by pulpfiction15.

Please Log in or Create an account to join the conversation.

More
03 Mar 2018 06:46 - 10 Mar 2018 04:58 #67872 by vlad_vy
Replied by vlad_vy on topic Voice alerts test build
It looks like we are close. Try next build with 0.3sec delay before MUSIC_Play(MUSIC_STARTUP):
#if HAS_EXTENDED_AUDIO
    audio_queue_time = CLOCK_getms() + 1500;
    num_audio=1;
    next_audio=1;
#if (LCD_WIDTH == 480) || (LCD_WIDTH == 320)
    if(Display.background.drawn_background)
        while(CLOCK_getms() < audio_queue_time - 1200);
#endif
    AUDIO_SetVolume(); // Initial setting of voice volume
#endif

    MUSIC_Play(MUSIC_STARTUP);

File deleted...
Last edit: 10 Mar 2018 04:58 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
03 Mar 2018 10:11 #67876 by pulpfiction15
Replied by pulpfiction15 on topic Voice alerts test build
@vlad-vy,

all OK now, thanks.:cheer:

Could you make a build also for a DEV012, to test.:whistle:

Please Log in or Create an account to join the conversation.

More
03 Mar 2018 13:00 - 10 Mar 2018 04:58 #67879 by vlad_vy
Replied by vlad_vy on topic Voice alerts test build
devo12 build with delay 0.3sec:

File deleted...
Last edit: 10 Mar 2018 04:58 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
03 Mar 2018 19:08 #67883 by pulpfiction15
Replied by pulpfiction15 on topic Voice alerts test build
@vlad-vy,

all OK, also on the devo12 , thanks.:cheer:

Please Log in or Create an account to join the conversation.

More
05 Mar 2018 14:24 #67914 by Moeder
Replied by Moeder on topic Voice alerts test build
Thanks vlad for fixing. Influenza had it's grip on me...

Please Log in or Create an account to join the conversation.

More
12 Mar 2018 20:29 #68033 by Bisky
Replied by Bisky on topic Voice alerts test build
Can't get my U7E to work with dfplayer. The dfplayer it self is working when I pres keys. It does not work over DSC port, external port currently not available in the model voice alert.
What am I doing wrong?

I flashed this to my U7E
www.deviationtx.com/downloads-new/catego...256-v5-0-0-voice-zip

TX, Bojan

Ultimate 7E + range mod + 3x2 switch mod + 3in1 module
Devo F7 XMS + 4in1 module

Please Log in or Create an account to join the conversation.

More
12 Mar 2018 22:17 #68034 by Moeder
Replied by Moeder on topic Voice alerts test build
Try the current nightly and closely follow the instructions in the wiki (especially ini settings)

Please Log in or Create an account to join the conversation.

More
13 Mar 2018 16:45 #68044 by Bisky
Replied by Bisky on topic Voice alerts test build
voice.ini was missing in the media folder on the transmitter...
Devo F7 doesn't work due cpu limitations?

Ultimate F7-XMS, could it be done?

Tx, Moeder

Ultimate 7E + range mod + 3x2 switch mod + 3in1 module
Devo F7 XMS + 4in1 module

Please Log in or Create an account to join the conversation.

More
15 Mar 2018 15:32 - 15 Mar 2018 15:33 #68093 by Moeder
Replied by Moeder on topic Voice alerts test build
Yes F7 like 7E had only 128 Kb flash, so no room for voice feature. We could compile F7XMS without standard mixer GUI to make room for voice features, but voice config menu would still not work due to ram limitations. Configuration would have to be done via ini editing or emulator.
Last edit: 15 Mar 2018 15:33 by Moeder.

Please Log in or Create an account to join the conversation.

More
15 Mar 2018 18:49 - 02 Sep 2022 08:23 #68102 by Remlen
Replied by Remlen on topic Voice alerts test build
Devo10 voice mod


















Attachments:
Last edit: 02 Sep 2022 08:23 by Remlen. Reason: photo

Please Log in or Create an account to join the conversation.

More
15 Mar 2018 18:50 - 02 Sep 2022 08:24 #68103 by Remlen
Replied by Remlen on topic Voice alerts test build
Attachments:
Last edit: 02 Sep 2022 08:24 by Remlen. Reason: photo

Please Log in or Create an account to join the conversation.

More
15 Mar 2018 19:33 #68106 by Bisky
Replied by Bisky on topic Voice alerts test build
Ok, this sounds promising, but difficult to set up in the *.ini files...

would the ultimate 7e boot loader worked if I changed CPU?

Ultimate 7E + range mod + 3x2 switch mod + 3in1 module
Devo F7 XMS + 4in1 module

Please Log in or Create an account to join the conversation.

More
15 Mar 2018 19:58 #68107 by Moeder
Replied by Moeder on topic Voice alerts test build

Bisky wrote: Ok, this sounds promising, but difficult to set up in the *.ini files...

would the ultimate 7e boot loader worked if I changed CPU?


In theory, yes, but you'd need a custom build. What is wrong in using the emulator to set up the ini files? But I won't hold you off from unsoldering and soldering yet another LQFP64 package :side:

Please Log in or Create an account to join the conversation.

Time to create page: 0.360 seconds
Powered by Kunena Forum