UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    sound issue playing music and voice navigation

    Scheduled Pinned Locked Moved Support
    18 Posts 5 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • P Offline
        padu @rinigus
        last edited by

        @rinigus said in sound issue playing music and voice navigation:

        You could see if SoundEffect will work for you (change it at https://github.com/rinigus/pure-maps/blob/master/qml/pure-maps.qml#L88) and whether it works better.

        Never got anywhere with Qt/QML or clickable before. Good opportunity to change that. Will try my best. 😃 Might take a couple of days, though.

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          rinigus @padu
          last edited by

          @padu , indeed! there are too few on mobile linux side - have to get hands dirty at some point. Good luck!

          1 Reply Last reply Reply Quote 0
          • P Offline
            padu
            last edited by padu

            Wow, that turned out to be quite easy (on Ubuntu 20.04). I have not been able to do production tests, yet, due to missing API keys.

            Am I correct that I need one key for Mapbox for tiles rendering (Western Europe) and one key for MapQuest for the routing service?

            I did test audio with the TTS test in the settings section. (Compiled the slim version with Pico TTS only.) After applying the following patch

            -    Audio {
            +    SoundEffect {
                     id: sound
            -        autoLoad: true
            -        loops: 1
                     }
            

            as per this GH issue comment, test voice was mixed with existing audio at the same volume level. No pausing and no damping of other audio streams. Tested with phone speakers and Bluetooth headset connected to N5 and OPO. No Bluetooth problems otherwise.

            R 2 Replies Last reply Reply Quote 0
            • R Offline
              rinigus @padu
              last edited by

              @padu , can you change the volume of the instructions? this seems to be the second issue with this approach

              P 1 Reply Last reply Reply Quote 0
              • R Offline
                rinigus @padu
                last edited by

                @padu: forgot to reply - yes, you need mapbox api key. or use osm scout server offline for testing

                1 Reply Last reply Reply Quote 0
                • P Offline
                  padu @rinigus
                  last edited by padu

                  @rinigus said in sound issue playing music and voice navigation:

                  @padu , can you change the volume of the instructions? this seems to be the second issue with this approach

                  SoundEffect property volume has an effect with and without Bluetooth (tested with N5 and headset). Or do you mean changing volume with buttons?

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    rinigus @padu
                    last edited by

                    @padu: yes, with volume bottons

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      padu
                      last edited by

                      Discussion continued in GitHub issue Prevent voice navigation stopping other audio #120.

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        padu
                        last edited by

                        New Pure Maps release 1.29.0 contains a patch that applies audio role notification to voice directions. Normal audio, e.g., music, is no more stopped, but damped now.

                        VW carkits have an infamous bug, that auto-mute Bluetooth audio after music was paused/stopped. When the next voice direction came in, unmuting took some time, cutting-off part of directions. This problem does not happen any more with the new Pure Maps release.

                        Using Ubuntu Touch as daily driver got a little more comfortable again. Thanks @rinigus and jonnius!

                        1 Reply Last reply Reply Quote 2
                        • R Offline
                          rinigus
                          last edited by

                          That's thanks to you for finding it out 🙂

                          1 Reply Last reply Reply Quote 2
                          • First post
                            Last post