MTTS | A Demo of Mandarin/Chinese TTS frontend | Machine Learning library

 by   Jackiexiao Python Version: v0.1 License: MIT

kandi X-RAY | MTTS Summary

kandi X-RAY | MTTS Summary

MTTS is a Python library typically used in Artificial Intelligence, Machine Learning, Pytorch applications. MTTS has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. However MTTS has 1 bugs. You can download it from GitHub.

Mandarin/Chinese Text to Speech based on statistical parametric speech synthesis using merlin toolkit. This is only a demo of mandarin frontend which is lack of some parts like "text normalization" and "prosody prediction", and the phone set && Question Set this project use havn't fully tested yet. 一个粗略的文档:A draft documentation written in Mandarin.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              MTTS has a low active ecosystem.
              It has 236 star(s) with 90 fork(s). There are 14 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 22 have been closed. On average issues are closed in 13 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of MTTS is v0.1

            kandi-Quality Quality

              MTTS has 1 bugs (0 blocker, 0 critical, 1 major, 0 minor) and 26 code smells.

            kandi-Security Security

              MTTS has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              MTTS code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              MTTS is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              MTTS releases are available to install and integrate.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              MTTS saves you 305 person hours of effort in developing the same functionality from scratch.
              It has 734 lines of code, 45 functions and 8 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed MTTS and discovered the below as its top functions. This is intended to give you an instant insight into MTTS implemented functionality, and help decide if they suit your requirements.
            • Convert txt to label
            • Add head and tail tail tail to the root node
            • Generate a tree structure
            • Convert txt to pinyin format
            • Calculate the tree for a given word
            • Generate a label from a text file
            • Performs montreal align
            • Load pre - pinyin setting
            • Add pinyin to the wav file
            • Convert TextGrid to a CSV
            • Extract the value from a string
            • Build an Entry object
            • Reads a textgrid from a textgrid file
            • Convert tinyin text to pinyin format
            • Generates a tree of syllables
            • Load pinyin setting
            Get all kandi verified functions for this library.

            MTTS Key Features

            No Key Features are available at this moment for MTTS.

            MTTS Examples and Code Snippets

            No Code Snippets are available at this moment for MTTS.

            Community Discussions

            QUESTION

            Text to Speech not working on Application relating to NFC
            Asked 2021-Jan-01 at 11:25

            Disclaimer: I am extremely new to Android Studio and App Developent so the code may be unorganized

            I am currently trying to develop an app in which when you scan an NFC tag with plain text on it, it will say the text aloud through texttospeech (no button). However, when I try to scan the NFC tag, the text comes up but the texttospeech is not working.

            Here is my MainActivity:

            ...

            ANSWER

            Answered 2021-Jan-01 at 00:39

            My understanding of TextToSpeech in the onInit method you just need to setup text to speech engine, it does not watch a particular widget and speak everything that is in it and does so every time it changes.

            To get it to speak the text stored on the NFC card

            In buildTagViews method after the line nfc_contents.setText("NFC Content: " + text); add

            Source https://stackoverflow.com/questions/65523244

            QUESTION

            Android Text to speech plays without error but does not produce any sound
            Asked 2020-Dec-17 at 16:20

            I have an app that plays some text to speech. It works well but I have someone who complains that he can't hear anything on an "Android 10 on a Samsung Galaxy Note 10+ 5G". From the tests I did, it seems that the code is executed without any errors and there is even a pause when the text should be heard, but no sound comes out. Things that were checked:

            1. The TTS engine is google - but it doesn't work on both Google and Samsung.
            2. In the TTS settings when you hit play, you can hear the playback sample.
            3. The language is set to English US

            The TTS init code:

            ...

            ANSWER

            Answered 2020-Dec-17 at 16:20

            QUESTION

            Why my onRangeStart() method of text to speech is not executing?
            Asked 2020-Oct-29 at 05:59

            I am working on a text to speech application, text to speech is working fine but now I want to highlight each word while it is being spoken by the speech to text engine.

            However, I have overridden onRangeStart() method, but actually, it is not executing in my device(API-25) and below.

            Text to Speech is working fine in all devices but the text is highlighted (while TTS processing) only in 26+ API devices. Why this is happing and how to make this functionality backwards compatible? here is my code.

            Implemented OnInitListener()

            ...

            ANSWER

            Answered 2020-Oct-29 at 05:59

            It's because onRangeStart was added in API 26. Therefore, unfortunately, it doesn't work on API 25.

            Source https://stackoverflow.com/questions/64478664

            QUESTION

            TextToSpeech with two languages - Android
            Asked 2020-Jun-11 at 09:43

            I have an ArrayList of an Object "Words" that has two Strings attributes, which are a word in one language and its translation in another language. The words are taken from txt files that have them separated by the symbol "=" and so there is a word and its translation in each line. Like this:

            ...

            ANSWER

            Answered 2020-Jun-11 at 09:43

            What you have to do is waiting for the tts to stop speaking the other words each time you call tts.speak(...). That you can do with a listener or a callback, I don't know how it is called, but just google "tts on finish speaking listener". When it has finished speaking, you can enter your next word and change the locale accordingly. What you're doing right now is telling the tts to play all words in the two languages at the same time and since the for loop does not wait as well, the next words are also inputted without waiting for the other inputs to have stopped speaking.

            Source https://stackoverflow.com/questions/62309617

            QUESTION

            Toggle TextToSpeech on and off using a togglebutton?
            Asked 2020-Apr-28 at 18:03

            So i have an app connected to firebase. The app retrieves data(a string) from firebase into a text view and then the TextToSpeech feature reads the text out(not from the textView but it itself retrieves the same data from firebase real-time database). I have used onDataChange() meathod so the texttospeech feature reads the text out as soon as any change in the data occurs on firebase, and not on the click of any button. Now i want to place a toggle button in my app and use it to either turn the tts feature on or off but i cant get it to work. When the toggle button is off, i want the texttospeech feature to stop and when the button state is on, i want the texttospeech feature to turn back on.This is what ive tried:

            ...

            ANSWER

            Answered 2020-Apr-28 at 18:03

            When you attach a valueEventListener the listener will trigger as long as there is change in the data, even though you checked the toggle to off. So the thing that you should do is to remove the listener when you are done:

            Directly under this:

            Source https://stackoverflow.com/questions/61485509

            QUESTION

            Problem with OData routing / paths in .Net Core 3.1
            Asked 2020-Mar-12 at 06:21

            I started working with OData and can not figure out how routing and paths are working.

            Have a controller :

            ...

            ANSWER

            Answered 2020-Mar-12 at 06:21

            Change the second HttpGet to

            Source https://stackoverflow.com/questions/60551955

            QUESTION

            While loop blocks UI and wont exit via button press in Android Studio
            Asked 2019-Dec-06 at 16:07

            A while loop is blocking the UI of my app from showing so I have no chance of pushing the cancel button to break out of it. Also if I am able to get the UI to show by calling the setup function from a TextToSpeech OnInitListener block, I still cant register the button press and exit out.

            Why is this happening and how can I get normal, non blocking while loop behavior that I can exit out of with a button click from my cancel button in the UI?

            This onCreate does not show the UI at all

            ...

            ANSWER

            Answered 2019-Dec-06 at 16:07

            Putting the testWhileLoop() function in a coroutine seems to work

            Source https://stackoverflow.com/questions/59200718

            QUESTION

            play TextToSpeech when the activity starting
            Asked 2019-Oct-02 at 08:38

            I want my application speak a sentence "Hello, If Your Case Is Emergency CALL 911" when the activity starting, but i cannot do that.

            i had used the following code:

            ...

            ANSWER

            Answered 2019-Oct-02 at 08:38

            thats because TTS is initializing for a while, pretty fast, but still you can't create new TextToSpeech and almost immediatelly few lines below call mTTS.speak. at this moment you don't know is TTS available - you must wait for status == TextToSpeech.SUCCESS (and also language available confirmation), so you should move you "welcome" speak method call there

            Source https://stackoverflow.com/questions/58197931

            QUESTION

            What is the correct way to display a Voice object to the user in an Android app using tts engine com.google.android.tts?
            Asked 2019-Jul-03 at 23:42

            An Android app running API > 21 utilizes the framework TextToSpeech class. The tts engine is set as com.google.android.tts.

            All the available locales in the engine can be obtained with,

            ...

            ANSWER

            Answered 2019-Jul-03 at 23:42

            There doesn't seem to be such a function. Pretty silly.

            Personally, I would just let the device/engine choose the "best" voice and only let the user specify the language. The Google engine is going to automatically select the most high quality and various other factors.

            But, if you really want to allow the user to choose a specific voice from a list, you could at least do something like "French 1," "French 2..." instead of "Voice 1," "Voice 2..." and it wouldn't require hard coding names:

            (unchecked code just to illustrate the idea:)

            Source https://stackoverflow.com/questions/56645133

            QUESTION

            TextToSpeech android API 22 not playing audio
            Asked 2019-Apr-22 at 19:12

            I am using text to speech engine in my App. It works fine on emulator Nexus 6 with API 23 and higher. But on emulator Nexus 6 with API 22 it does not speak. Both emulators use Pico TTS as preferred engine.

            My activity layout contains only one button "Speak". This is my activity code:

            ...

            ANSWER

            Answered 2019-Apr-22 at 19:12

            Figured out how to solve the problem. Everything works if launch the emulator not via Debugging or Execution but from AVD Manager after starting Android Studio.

            Source https://stackoverflow.com/questions/54679180

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install MTTS

            Python : python3.6 System: linux(tested on ubuntu16.04). Run bash tools/install_mtts.sh Or download file by yourself.
            Download montreal-forced-aligner and unzip to directory tools/
            Download acoustic_model thchs30.zip and copy to directory misc/

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Jackiexiao/MTTS.git

          • CLI

            gh repo clone Jackiexiao/MTTS

          • sshUrl

            git@github.com:Jackiexiao/MTTS.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link