sillsdev / SpeechAnalyzer

SIL Speech Analyzer is a Windows program for acoustic analysis of speech sounds.
https://software.sil.org/speech-analyzer/
7 stars 3 forks source link

bug: Function keys for playback functions #90

Closed darcywong00 closed 1 year ago

darcywong00 commented 1 year ago

@terrygibbs reported the following from a user (along with his workaround afterwards)

The current issue I have is the F keys for playback functions. For example, I set up Ctl-F1 to play at half speed between cursors, and it plays AFTER the right cursor instead. Not a huge deal, but a deal.

Keep plugging!


Sorry to hear about this problem.

I've found if you want to playback a Selection, then instead of using the "Between Cursors" option, use instead the next option "Left Window -> Begin Cursor".

Obviously there is a "wiring" problem with what-goes-where.

I hope this helps, left window

megahirt commented 1 year ago

More details from @terrygibbs :

After installing SA you should then be able to study this problem. 1: Install SA.

2: Place the new"Cahill Test 1a.wav" in a new file and put "Cahill Test 1a.saxml" in the same location. This will enable SA to read the ".saxml" data.

3: Launch SA and note that at the left side of the screen there are 2 thin vertical bars. One is Green and the other is Red. Clicking anywhere in the screen will cause the vertical bars to move to the location where the mouse was clicked on in the screen. Starting with the 2 bars at the far left and clicking once in the middle of the screen this will move the Green bar the to middle of screen and the Red bar will be slightly to the right of that. If the Green bar is moved to the left then the Red bar will not move, but if the Green bar is move far to the right it will push the Red bar out of the way. The "Data in current use" will always be the result of putting the two bars where you want them. They can both be moved interdependently, but the Green bar can never move beyond the Red bar since the Green bar just keeps pushing the Red bar away.

4: For now place the Green and Red bars as shown in the picture below.

5: Then in the SA menu item "Playback" if you select "Player" then you should see a floating dialog box. And if you select the "Down Arrow" then next to "Play" you will see 9 options.

sa1

6: If you select the "Between Cursors" option and press play you will hear the audio that is between the Green and Red bars.

7. The current layout and function of Player is working correctly. However there is an issue regarding the use of Player when using the Control-Function (Ctl-Fx) keys. The error that needs attention is:

"If Ctl-F1 is selected to play any 2 cursors; it begins playing the audio AFTER the Red right cursor" 8: The setup of the Ctl-Fx Keys is done like this: Close the main menu item "Player" and in the main menu item Playback, select the bottom item that says "Setup Function Keys" 9: Use FI and use the Play "Between Cursors".

Do not use the "Run Test" it will lockup SA (another problem to fix). Just click OK For me nothing happens; not even what the customer is complaining about.

megahirt commented 1 year ago

Additional context from @terrygibbs on Dec 2:

Below is some additional new information regarding how to locate the problem.

The left Red circle is the shortcut button for hearing the playback of what is selected by the 2 cursors. It is permanently connected to the "Between Cursors" option that is in the Playback/ Player menu.

The right Red circle is the shortcut button to the Player itself.

sa2

If you click the red "Between Cursors" button above, you will hear the audio that is between the 2 cursors.

If you click the red "Player" button on the right you will see that "Between Cursors" is selected. sa3

If you also show the "Function Keys Setup" item you will see that F1 is connected to "Between Cursors". sa4

The basic problem is that the if you close the "Function Keys Setup" and Player, and the select the menu item Playback, and then select "Function Keys" and Ctrl+F1 then you will not not get the audio from between the 2 cursors, but instead you will get audio that starts at the Red Cursor and plays to the end of the file.

If you want to hear the correct Audio that is between the 2 cursors, you must select the menu item Playback, and then select "Function Keys" and Ctrl+F2

sa5

This is a single example of playback not being "connected" correctly. In fact all of the items in the "Function Keys" list are in an incorrect location.