UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. andrew907
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 7
    • Groups 0

    andrew907

    @andrew907

    0
    Reputation
    1
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    andrew907 Unfollow Follow

    Latest posts made by andrew907

    • RE: Pinephone Pro could be a daily driver except for 1 bug...
      systemctl restart ofono
      

      works for me to restart the modem manager in Ubuntu Touch after the Pinephone Pro has been asleep.
      If you're using Mobian + Phosh, it was restart eg25-manager instead of ofono.

      posted in PinePhone Pro
      A
      andrew907
    • RE: future support for speech synthesis?

      @sven That's an interesting project, but my (limited) understanding is that the operating system needs integrated voices for the speech synthesis API to work in the browser. So that something more is needed than adding an app to tte Open Store. MDN: "Again, most OSes have some kind of speech synthesis system, which will be used by the API for this task as available." https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API

      posted in Off topic
      A
      andrew907
    • future support for speech synthesis?

      This is just a convenience for me, but could be more central for people with visual impairment. I'm loving version 2 of Ubuntu Touch on the Pixel 3a--especially the ability to use Brave search as default in Morph and choose more alarm tones--but I noticed that no voices are loading when I run the MDN speech synthesis demo in Morph: https://mdn.github.io/dom-examples/web-speech-api/speak-easy-synthesis/ whereas it does work on Ubuntu Unity 23.04 in Firefox.

      Is there any voices package that could be bundled with Ubuntu Touch in the future to make this work?

      posted in Off topic accessibility
      A
      andrew907
    • RE: morph timer issue

      @andrew907 I don't know what the problem was, probably an issue with limited memory, but I reworked my code to rely primarily on offline audio contexts. Morph is still giving me the error messages about stopping and starting timers from another thread, but it's also generating the music as expected based on my preliminary test. Very slowly, but we can chalk that up to the hardware rather than Ubuntu Touch, because the ram use spikes above 90%. We can mark this issue as resolved.

      posted in Support
      A
      andrew907
    • RE: morph timer issue

      @andrew907

      • Tried with Mobian 12 and Firefox 102.11.0esr on the Pinephone. Perhaps is working (speaker icon appeared momentarily in the tab) but runs out of ram before any sound plays.
      • github.com/cwilso/metronome works fine on Morph - it's using a worker thread rather than setTimeout, and one oscillator per note rather than six or seven as I use
      • setTimeout appears to be working plausibly based on a minimal working example from MDN, so that alone isn't the problem
      • tried a much shorter test run with only five notes instead of a minute of music, and without using setTimeout; sometimes, but not reliably every time, getting warning in the console
      [29/05/2023 03:36] qml: System low on memory, but unable to pick a tab to unload
      

      There are two variables, the hardware capacity and the software. Until some phone becomes available with a decent amount of ram, there's probably not a way to find out whether Morph could do the job with enough computing resources or whether Morph is missing some needed component that desktop Firefox has.

      posted in Support
      A
      andrew907
    • morph timer issue

      I'm trying to write a synthesizer with web audio and client side javascript. I'm using a mechanism along the lines of github.com/cwilso/metronome (boils down to window.setTimeout) to schedule oscillators nearer to when the music needs them, because scheduling them all up front was taking an impossible amount of ram.

      Results on a test piece of music: works reasonably as expected in Firefox on 2020 m1 macbook air, stutters in Firefox on Ubuntu Unity (presumably because the machine only has two cores and 4 gb of ram). I was hoping to at least get stuttering audio in Morph on Ubuntu Touch Focal OTA-1 on the Pixel 3a, because that would indicate that my code was probably valid even if the hardware is underpowered.

      Instead, I'm seeing this message in the log viewer app:

      [23/05/2023 16:51] QObject::startTimer: Timers cannot be started from another thread
      [23/05/2023 16:52] QObject::killTimer: Timers cannot be stopped from another thread
      

      Does anyone who understands better how Morph works than I do have any ideas about what the issue might be?

      I tried on my Pinephone but Morph is too old to recognize the replaceAll method, but I might try this in Firefox on Mobian on the Pinephone to get another data point when I get a chance to set up a Mobian install.

      posted in Support
      A
      andrew907
    • app updates failing

      I am running build 2020-09-08. I installed it a couple weeks ago and I thought I'd installed some updates successfully. I can still update apps in the Open Store but whenever I try to update apps from Settings, I get the message

      Update failed
      ProcessError: 0 - ErrInProcess
      Exit code: 7
      Stdout: 
      Stderr:
      

      Is this a known bug and will a fix be available at some point?

      posted in PinePhone
      A
      andrew907