Add a document to recognize TTS instead of passing a string in open ears sample

Home Forums OpenEars Add a document to recognize TTS instead of passing a string in open ears sample

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

  • Author
    Posts
  • #1015689
    Dalee
    Participant

    Open Ears is a great SDK that i have come across!
    I would require a help in adding a whole document to support TTS.
    Can we add a document instead of passing a string in open ears sample?
    How can we do that?

    Awaiting your Response!

    Thanks,
    Dalee Davis

    #1015691
    Halle Winkler
    Politepix

    Welcome Dalee,

    You can’t pass in a document, but the code to convert a text file into an NSString is just 1-2 lines, here’s an example:

    http://stackoverflow.com/questions/2171341/how-to-get-the-contents-of-a-text-file-stored-locally-in-the-documents-director

    #1015692
    Dalee
    Participant

    @Halle -Thanks!

    ok thats cool!
    but using this can i pass on a .epub files is my concern?

    Thanks,
    Dalee Davis

    #1015693
    Halle Winkler
    Politepix

    Hi Dalee,

    Nope, that won’t work for an .epub. Ebook reading is an implementation question that is part of how you design and construct your app. OpenEars is a speech API so it doesn’t try to address app implementation questions like the best way to process ebooks into readable NSStrings. I’m sure that searching Stack Overflow for the keywords that are part of your implementation question will result in lots of useful information about where to get started.

    #1015694
    Dalee
    Participant

    @ Halle – Ok Cool,Thanks!!

    Thanks,
    Dalee Davis

    #1015822
    Dalee
    Participant

    @ Halle – Well i have a query , dont know whether it would be included in open ears implementation part but just wanted to know whether we can highlight the words which open ears shall be reading.

    Any help will be appreciated!

    Thanks,
    Dalee Davis

    #1015823
    Halle Winkler
    Politepix

    Hi Dalee,

    Not one a word-to-word basis, no.

    #1016025
    Dalee
    Participant

    @ Halle

    Thanks for all your support really appreciated!

    Can u let me know whether we can stop the reciting of text from NSString.
    To be Precise can i pause the voice that is reading the text and then resume it.
    If so can you let me know the method that needs to be invoked?

    Thanks,
    Dalee Davis

    #1016026
    Halle Winkler
    Politepix

    Hello,

    No, you can’t pause TTS speech.

    #1016027
    Dalee
    Participant

    ok but is there any other way out to stop it

    Thanks,
    Dalee Davis

    #1016028
    Halle Winkler
    Politepix

    Hi Dalee,

    This is an undocumented method, meaning that I don’t offer any support for it if you encounter issues with it, but you can try calling [self.fliteController interruptTalking];

    #1016031
    Dalee
    Participant

    @ Halle

    Thanks a lot for sharing!! surely i will try that

    Thanks,
    Dalee Davis

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