8000 Android TTS string length limit! · Issue #1 · m1ga/ti.tts · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Android TTS string length limit! #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Informate opened this issue Feb 6, 2025 · 4 comments
Open

Android TTS string length limit! #1

Informate opened this issue Feb 6, 2025 · 4 comments

Comments

@Informate
Copy link
Informate commented Feb 6, 2025

I have found that a string length limits exists for speak (not tested on synthetizeToFile().

The limit is (as I read) 4000 charachters! Would be better to report it somewhere (maybe in the main page)

https://stackoverflow.com/questions/29027854/how-to-use-tts-texttospeech-while-string-has-more-then-4000-characters-in-andr

The effective limit is given by tts.getMaxSpeechInputLength() !

Also I do not know if the module is free code or not! Also if it is very simple code can I modify it? Use it in production or commercial applications?

Thanks @@m1ga

@m1ga
Copy link
Owner
m1ga commented Feb 6, 2025

You can use my module in any way you want :) Sorry for not adding a license but feel free to change it, use it and extend it!
All my github modules are free to use, modify, change,...

edit: I've added a note about the character limit to the README

@Informate
Copy link
Author
Informate commented Feb 7, 2025

@m1ga Sorry I need some more help! I updated the module but:

If I build the module by my self on Mac it works but I need to build it under Linux where it do not works:
The module bulds correctly but
when I put it into the app project and build the whole app I get the following error!

[ERROR] [GRADLE] ERROR:/home/kikko/.gradle/caches/transforms-3/ ... /transformed/jetified-tts-1.1.0-runtime.jar: D8: java.lang.IllegalArgumentException: Unsupported class file major version 61

Do you know what it could be? Is related to missalignment in the build app between Java version or Gradle Versions?

I know is a issue related to Java version but I am using Java 17.0.14, Titanium CLI 7.1.4, Titanium 12.6.1
What could be wrong?

In the Mac where it works I have CLI 7.0.0

@m1ga
Copy link
Owner
m1ga commented Feb 7, 2025

My main workstation is a Linux machine, so I only build the module there. And it works fine. I recommend building it with ti build -p android -b --sdk 12.5.1.GA so it will be compatible with Ti < 12.6.0. check https://tidev.io/blog/sdk_12_6_0_ga for more infos

@Informate
Copy link
Author

ti build -p android -b --sdk 12.5.1.GA

Thanks @m1ga! Now I got what I missed in the build !!! Wrong SDK in tiapp.xml !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0