Getting Output level for NeatSpeech

Home Forums OpenEars plugins Getting Output level for NeatSpeech

Viewing 5 posts - 1 through 5 (of 5 total)

  • Author
    Posts
  • #12717

    josh
    Participant

    Is it possible to get the output level using the Neat Speech library? The [fliteController fileOutputLevel] method works well with OpenEars but as soon as I switch to NeatSpeech it only outputs 0.

    #12775

    Halle Winkler
    Politepix

    Whoops, this may have been an oversight in version 1.0, I will check it out. If you want to try to make a quick change to OpenEars in the meantime that might help, find this line in the project OpenEars.xcodeproj in the class FliteController:

    – (Float32) fliteOutputLevel {
    if(self.speechInProgress == TRUE) {

    and change it to:

    – (Float32) fliteOutputLevel {
    if([self.audioPlayer isPlaying] == TRUE) {

    Then recompile the OpenEars framework and use in your app. Let me know if that results in audio output being restored.

    #13011

    Halle Winkler
    Politepix

    This is fixed in OpenEars 1.2.4 out today.

    #13084

    josh
    Participant

    Thanks a lot! The latest version fixed the fliteOutputLevel. However, just to let you know the fliteController.speechInProgress still always returns false.

    #13086

    Halle Winkler
    Politepix

    OK, good to know, thanks. In a pinch, from outside of the class you can always check whether speech is in progress by checking the boolean [self.fliteController.audioPlayer isPlaying].

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.