Open andreystarenky opened 1 month ago
You are welcome to submit a patch to add getter
I am looking to use the native Android NoiseSuppressor class which works by providing it with the Session ID from the native AudioRecord object which SpeechService (Vosk Android Java class) uses. It is accessed by calling [AudioRecord.getAudioSessionId()](https://developer.android.com/reference/android/media/AudioRecord#getAudioSessionId()) on the AudioRecord object, but the object is a private variable in the SpeechService class and there is no getter method for it.
Thanks
@andreystarenky Use reflection in the mean time while it's not yet supported by the community.
I am looking to use the native Android NoiseSuppressor class which works by providing it with the Session ID from the native AudioRecord object which SpeechService (Vosk Android Java class) uses. It is accessed by calling [AudioRecord.getAudioSessionId()](https://developer.android.com/reference/android/media/AudioRecord#getAudioSessionId()) on the AudioRecord object, but the object is a private variable in the SpeechService class and there is no getter method for it.
Thanks