Hi again thanks for your assistance last time regarding the TTS FireDragon and the changes to the code. I was trying to get my javascript to run, however it remains unable to call up the voices. Also thanks for linking the config too. For reference:
add_options --with-app-basename=FireDragon
ac_add_options --with-app-name=firedragon
ac_add_options --with-noraneko-buildid2=firedragon/_dist/buildid2
ac_add_options --enable-application=browser
# Branding
ac_add_options --allow-addon-sideload
ac_add_options --enable-unverified-updates #[NotOnArtifactBuild]
ac_add_options --enable-update-channel=release
ac_add_options --with-distribution-id=org.garudalinux
ac_add_options --with-unsigned-addon-scopes=app,system
export MOZILLA_OFFICIAL=1
export MOZ_APP_REMOTINGNAME=firedragon
export MOZ_CRASHREPORTER=
export MOZ_DATA_REPORTING=
export MOZ_REQUIRE_SIGNING=
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
export MOZ_TELEMETRY_REPORTING=
# Features
ac_add_options --disable-crashreporter # (Minimize telemetry)
ac_add_options --disable-default-browser-agent
ac_add_options --disable-parental-controls # (Disable local/OS MTIM)
ac_add_options --disable-debug #[NotOnArtifactBuild]
ac_add_options --disable-debug-js-modules #[NotOnArtifactBuild]
ac_add_options --disable-debug-symbols #[NotOnArtifactBuild]
ac_add_options --disable-rust-tests #[NotOnArtifactBuild]
ac_add_options --disable-synth-speechd
ac_add_options --disable-tests
ac_add_options --disable-warnings-as-errors #[NotOnArtifactBuild]
ac_add_options --enable-av1
ac_add_options --enable-jxl
ac_add_options --enable-proxy-bypass-protection
ac_add_options --enable-raw
ac_add_options --enable-sandbox
ac_add_options --enable-strip #[NotOnArtifactBuild]
# Build options
mk_add_options MOZ_OBJDIR="$PWD/obj-artifact-build-output"
ac_add_options --enable-hardening #[NotOnArtifactBuild]
ac_add_options --enable-release
ac_add_options --enable-rust-simd
ac_add_options --enable-wasm-simd
ac_add_options --enable-optimize #[NotOnArtifactBuild]
I think what’s happening is that “ac_add_options --disable-synth-speechd” is preventing the voices from being loaded.
For example in FireDragon, I go CTRL-Shift-K and then type in the command: “speechSynthesis.getVoices()” however, what i get as a response is “Array ”. Then I try another test in the developer console: “speechSynthesis.speak(new SpeechSynthesisUtterance(“Hello”))” then the response is that this is “undefined”.
We’re getting there though, thanks for your previous changes! I’m still trying to get that WebAssembly TTS thing to work so there wouldn’t be as much of a need to prop on javascript.
Anyways I also tried “typeof speechSynthesis.speak” and the result was “function” yet there is no speaking. So I check:
"console.log({hasSpeechSynthesis: 'speechSynthesis' in window, voices: speechSynthesis.getVoices().length,canSpeak: typeof speechSynthesis.speak});"
And the console says that it’s undefined. So it’s probably because the module wasn’t compiled and that
ac_add_options --disable-synth-speechd
is the likely cause. Though I encourage corresponding investigation about this regarding security and resilence. So what problems could be introduced or not introduced if it is:
ac_add_options --enable-synth-speechd
instead?