Bug 429654 - Cant's disable voice
Summary: Cant's disable voice
Status: RESOLVED FIXED
Alias: None
Product: knights
Classification: Applications
Component: general (show other bugs)
Version: 2.6.201180
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
: 442813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-25 18:34 UTC by Marcelo Escobal
Modified: 2024-05-09 21:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 24.05


Attachments
Before / After (344.70 KB, image/png)
2024-04-01 21:14 UTC, Mark Capella
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Escobal 2020-11-25 18:34:44 UTC
SUMMARY


STEPS TO REPRODUCE
1. Launch Knights
2. Play
3. Hear the voice

OBSERVED RESULT
Voice is always on.

EXPECTED RESULT
Any player should be able to disable it.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.10
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 Alexander Semke 2022-04-15 08:44:12 UTC
*** Bug 442813 has been marked as a duplicate of this bug. ***
Comment 2 Mark Capella 2024-04-01 21:14:57 UTC
Created attachment 168038 [details]
Before / After
Comment 3 Mark Capella 2024-04-01 21:15:23 UTC
I was hoping to patch this but it looks already corrected here:
https://invent.kde.org/games/knights/-/commit/bc828eb7e7ec50392b0bfe9118bb367d84d540a7

If confirmed can we close?

My failing build as delivered in my distro & and my succeeding clean build off kdesrc
(no patches of my own).
Comment 4 Alexander Semke 2024-04-14 15:41:55 UTC
(In reply to Mark Capella from comment #3)
> I was hoping to patch this but it looks already corrected here:
> https://invent.kde.org/games/knights/-/commit/
> bc828eb7e7ec50392b0bfe9118bb367d84d540a7
> 
> If confirmed can we close?
That commit only disable the sounds played when moving the pieces. This bug report about not being able to disable the spoken voice for the actual moves ("pawn to d4", etc.). To reproduce this problem you need to have knights compiled with Qt6SpeechToText engine installed. We need to add an additional option that will allow to disable the voice similar to how it's already possible to disable the move sounds. This option should only be shown if the application was compiled with Qt6SpeechToText.

The relevant logic is in gamemanager.cpp (search for #ifdef HAVE_SPEECH) and I see already it's being checked via  Settings::speakOpponentsMoves() but the setting itself is not available in the settings dialog (anymore?). Do you want to prepare a patch for this?
Comment 5 Mark Capella 2024-04-16 00:12:58 UTC
Sure! It looks like this changeset:
https://invent.kde.org/markcapella/knights/-/commit/fe457fe5af3b99e59206dfb6e2d266ccc264cbce
Comment 6 Alexander Semke 2024-04-20 17:43:41 UTC
(In reply to Mark Capella from comment #5)
> Sure! It looks like this changeset:
> https://invent.kde.org/markcapella/knights/-/commit/
> fe457fe5af3b99e59206dfb6e2d266ccc264cbce
This goes into the proper direction, yes. I added a comment under your commit now. Let's finalize everything there.
Comment 7 Mark Capella 2024-04-22 06:13:29 UTC
I've had to refresh my repo after botching it locally. Here's a new commit:
https://invent.kde.org/markcapella/knights/-/commit/551027d73e05928c85a5a3d84d2078d463fa1c49
Comment 8 Mark Capella 2024-04-22 22:59:46 UTC
I'd like to also suggest
https://invent.kde.org/markcapella/knights/-/commit/248010a9a134c4268bce0ae518e4a94b723e50af

Which removes leftover qDebug STDERR message.
   "background key  "Background""

And corrects three STDERR messages generated on open of  Settings -> Configure Knights.
    "edit: editing failed"
    "edit: editing failed"
    "edit: editing failed"
Comment 9 Mark Capella 2024-04-30 05:55:51 UTC
I had fun learning how to add that panel !  :B

Ok, this is simpler :)

https://invent.kde.org/markcapella/knights/-/commit/4228eb38be92ce125e363b7a1d188a1364dd088a
Comment 10 Alexander Semke 2024-05-09 21:23:22 UTC
(In reply to Mark Capella from comment #8)
> I'd like to also suggest
> https://invent.kde.org/markcapella/knights/-/commit/
> 248010a9a134c4268bce0ae518e4a94b723e50af
> 
> Which removes leftover qDebug STDERR message.
>    "background key  "Background""
> 
> And corrects three STDERR messages generated on open of  Settings ->
> Configure Knights.
>     "edit: editing failed"
>     "edit: editing failed"
>     "edit: editing failed"

The link doesn't seem to work for me anymore. Please create a new MR and we finalize this other topic separately.