I have checked in the Prolog functionality needed to support this. On the Java side, you need the following classes and methods in RegulusGUI.java:
1. The class WavfileInfo, which represents a recorded wavfile. It has three fields:
private String fileName; //name of the file
private String timeStamp; //when it was recorded
private String words; //text version of the speech content, either from human transcription or speech rec
2. The method public WavfileInfo[] getWavfileInfo(int nWavfiles)
Get the last nWavfiles recorded wavfiles, and return them as an array of WavfileInfo objects
3. The method public String doSpeechRecognitionFromWavfile(String fileString)
Do speech recognition on a file, and return the resulting string.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have fixed the speech History Menu. So you can now rerun vave files.
Two questions that you might want to discuss with Agnes.
1. When you select a wave file to be rerun from history menu, you will actually need to press translate to "run" it. This is to keep it the same as text History. Text History is like that because you might want to edit the text. However you probably do not want to edit the wavefile. I can just do it so you select something and it is translated immidiately without pressing translate button. How do you want it?
2. The speech History menu items have a timestamp. Would you prefer that I displayed it with a calculated time. For example"run five minutes ago".?
Over to you for testing and comments.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=529904
Originator: YES
I have checked in the Prolog functionality needed to support this. On the Java side, you need the following classes and methods in RegulusGUI.java:
1. The class WavfileInfo, which represents a recorded wavfile. It has three fields:
private String fileName; //name of the file
private String timeStamp; //when it was recorded
private String words; //text version of the speech content, either from human transcription or speech rec
2. The method public WavfileInfo[] getWavfileInfo(int nWavfiles)
Get the last nWavfiles recorded wavfiles, and return them as an array of WavfileInfo objects
3. The method public String doSpeechRecognitionFromWavfile(String fileString)
Do speech recognition on a file, and return the resulting string.
Logged In: YES
user_id=1261173
Originator: NO
Hi.
I have fixed the speech History Menu. So you can now rerun vave files.
Two questions that you might want to discuss with Agnes.
1. When you select a wave file to be rerun from history menu, you will actually need to press translate to "run" it. This is to keep it the same as text History. Text History is like that because you might want to edit the text. However you probably do not want to edit the wavefile. I can just do it so you select something and it is translated immidiately without pressing translate button. How do you want it?
2. The speech History menu items have a timestamp. Would you prefer that I displayed it with a calculated time. For example"run five minutes ago".?
Over to you for testing and comments.