Error: Number of streams should be 2 or 3

Home Forums OpenEars plugins Error: Number of streams should be 2 or 3

Tagged: 

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

  • Author
    Posts
  • #1016872
    pgmartin
    Participant

    Hi

    I am trying to use the NeatSpeech demo plugin with the OpenEars demo. I followed the simple steps outlined in the guide. Replaced the references for Slt to Beatrice voice (as I require a UK sound).

    I also added a button to the xib that reads a text box and speaks the value using sayWithNeatSpeech.

    Problem is I get the following error each time it should be speaking:

    Error: HTS_GStreamSet_create: The number of streams should be 2 or 3.

    The log:

    2013-04-05 21:06:32.495 OpenEarsSampleApp[4549:11f03] Pocketsphinx calibration is complete.
    2013-04-05 21:06:32.495 OpenEarsSampleApp[4549:15803] Listening.
    2013-04-05 21:06:32.496 OpenEarsSampleApp[4549:11f03] Pocketsphinx is now listening.
    2013-04-05 21:06:41.694 OpenEarsSampleApp[4549:11f03] Initializing NeatSpeech: by using NeatSpeechDemo, you assert that you have read and agree to the demo terms contained in the registered download package
    2013-04-05 21:06:41.695 OpenEarsSampleApp[4549:11f03] Flite sending suspend recognition notification.
    2013-04-05 21:06:41.696 OpenEarsSampleApp[4549:11f03] Flite has started speaking

    Error: HTS_GStreamSet_create: The number of streams should be 2 or 3.

    The demo speaks once PocketSphinx calibration was completed, the same errors occurs then too. I have commented out that line currently so the rest of the demo can work.

    Any help is most appreciated.

    #1016873
    Halle Winkler
    Politepix

    Welcome,

    I know this is working fine since I just tested it a few days ago, but I think the issue you are seeing probably has something to do with replacing the references to Slt (which is a FliteController voice) with Beatrice (which is a NeatSpeech voice, so they aren’t really 100% interchangeable in terms of how they are initialized and which methods need to be used with them). It sounds a bit like you’re using the sample app, is that correct? Could you instead start from scratch and use the tutorial tool here:

    https://www.politepix.com/openears/tutorial

    selecting “Offline speech synthesis with better voices (paid plugin)” in order to build an app that is designed for use with NeatSpeech from the start? My other advice is to make sure that you’ve dragged in the folder VoiceData, which is something that sometimes gets overlooked in the instructions. Let me know if those steps help.

    #1016894
    pgmartin
    Participant

    Thanks, Halle.

    I am using the OpenEarsSampleApp.  It was previously speaking with the Slt voice.

    I have followed the tutorial again and completed each step modifying the openEarsSampleApp.  I checked the voices frameworks and Voices/VoiceData all seem ok.

    I still get the same error:
    Error: HTS_GStreamSet_create: The number of streams should be 2 or 3.
    sayWithNeatSpeech:withVoice: seems to cause it.  The log says “Flite has started speaking” then the error is logged immediately after that.
    If am sure it should work, as the tutorial steps are very simple really.  Could there be something else in my set up or the simulator that I need to change?  I am using XCode 4.6 and have tried iPad 6.1 simulator and iphone 6.1 simulator.  When using 5.1 simulator no audio works at all (but that I am told is a bug in that version of the simulator)…

    Cheers

    Phil

    #1016895
    Halle Winkler
    Politepix

    Hi Phil,

    OK, I still strongly recommend not doing anything with the sample app (including modifying it following the tutorial) and really starting from scratch with a new app made from the tutorial instructions, so you don’t have to troubleshoot something that is already full of settings that are designed around demoing OpenEars by itself.

    I haven’t heard of this issue before, but I tend to think it will disappear with a really fresh start.

    #1016896
    Halle Winkler
    Politepix

    BTW, just wanted to mention in case you didn’t see it that there are little clipboard icons on all of the code in the tutorial, so you can just click them and the code will be pasted directly to your clipboard and you can paste it into your project to make it as easy as possible to add to a new app.

    #1016909
    pgmartin
    Participant

    Hi Halle

    Thanks for your help.  Starting from scratch did fix it.

    Now my barebones app is working, I noticed the UK voices often pop loudly (a bit like when you tap a microphone) and they are quite sibilant.  Is that just because it’s on the simulator?

    The recorded examples on the NeatSpeech webpage don’t pop or sound as “essy” so is it safe to assume they will sound better on a real iPad?

    #1016910
    Halle Winkler
    Politepix

    Hmm, is it possible that you’re using a somewhat old version of NeatSpeech? The current version was specifically released in order to fix UK voice popping noises but it’s been out for a bit now. If you are still hearing popping with the version from the last month, please let me know an example sentence so that I can test it locally.

    #1016911
    pgmartin
    Participant

    I downloaded the NeatSpeechDemo from a link in the politepix order confirmation email (from 4th April). Opening up the download it says NeatSpeech version 1.1 in the license agreement.

    Is that the current version?

     

    #1016913
    Halle Winkler
    Politepix

    Yup, that is the current version. Can you let me know the sentence with which you are getting pops, so I can check it out? The recordings on the page are also made from the Simulator with version 1.1, so it could be something restricted to particular words which I can investigate and hopefully fix.

    Please let me know your Xcode version, target SDK, and Simulator version with which you’re hearing issues along with the sentence so I can set up a test. Thanks!

    #1016919
    pgmartin
    Participant

    Using Beatrice voice. Here are some examples.  XCode 4.6, SDK 6.1, IPad 6.1 simulator

    Words in a sentence that pop are below in [bold]. Words that do a quieter click are in [italic]

    [Hello], this is Beatrice

    One fine evening a young princess [put] on her bonnet and clogs, and went out to take a walk [by] herself in a wood; and when she came to a cool [spring] of water with a [rose] in the middle of it, she sat herself down to rest a while. Now she had a golden ball in her hand, which was [her] favourite plaything; and she was always tossing it [up] into the air, and catching it again as it fell.

    The same text in Elliott voice sounds much better. I think I only noticed one click in the last sentence…

    …and she [was] always tossing it up into the air, and catching it again as it fell.

    Thanks

    #1016928
    Halle Winkler
    Politepix

    Hello,

    OK, I’ve verified that this is a bug, thanks for the bug report. I think I’ll be able to take a look at it next week.

    #1016935
    Halle Winkler
    Politepix

    For now I have replaced the current demo version (which seems to have some issues as a result of a recent change in compilation options) with the previous version, which I believe doesn’t have as much of an issue with popping. In this version the UK voices are a bit quieter. I will take a look at the underlying issue next week and figure out what the issue is but in the meantime this should be an improvement. You can download a new demo by using the same link you were originally sent.

    #1016936
    pgmartin
    Participant

    Thank you.  I will update my demo and wait for the fix.

    #1017140
    Halle Winkler
    Politepix

    OK, this has been fixed in version 1.02 which is available now: https://www.politepix.com/2013/05/04/neatspeech-version-1-02-out-now/

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