Listen to our major Text to Speech upgrades for 64 bit devices.

Hallo Friends cellphone prices and specifications, In the article that you are reading this time with the title Listen to our major Text to Speech upgrades for 64 bit devices., we have prepared this article well for you to read and take the information in it. hopefully the contents of the post Article Android Developers Blog, Article IFTTT, what we write you can understand. all right, have a nice reading..

Posted by Rakesh Iyer, Staff Software Engineer and Leland Rechis, Group Product Manager

We are upgrading the Speech Services by Google speech engine in a big way, providing clearer, more natural voices. All 421 voices in 67 languages have been upgraded with a new voice model and synthesizer.

If you already use TTS and the Speech Services by Google engine, there is nothing to do – everything will happen behind the scenes as your users will have automatically downloaded the latest update. We’ve seen a significant side by side quality increase with this change, particularly in respects to clarity and naturalness.

With this upgrade we will also be changing the default voice in en-US to one that is built using fresher speaker data, which alongside our new stack, results in a drastic improvement. If your users have not selected a system voice, and you rely on system defaults, they will hear a slightly different speaker. You can hear the difference below

Speaker change and upgrade for EN-US

Sample Current Speaker

Sample Upgraded Speaker


Speaker upgrades in a few other languages

Current

Upgraded

HI-IN

HI-IN

PT-BR

PT-BR

ES-US

ES-US


This update will be rolling out to all 64 bit Android devices via the Google Play Store over the next few weeks as a part of the Speech Services by Google apk. If you are concerned your users have not updated this yet, you can check for the minimum version code ,210390644 on the package com.google.android.tts.

If you haven't used TTS in your projects yet, or haven’t given your users the ability to choose a voice within your app, it's fairly straightforward, and easy to experiment with. We’ve included some sample code to get you started. 

Here’s an example of how to set up voice synthesis, get a list of voices, and set a specific voice. We finally send a simple utterance to the synthesizer.

public class MainActivity extends AppCompatActivity {
  private static final String TAG = "TextToSpeechSample";

  private TextToSpeech tts;

  private final UtteranceProgressListener progressListener =
new UtteranceProgressListener() {
    @Override
    public void onStart(String utteranceId) {
      Log.d(TAG, "Started utterance " + utteranceId);
    }

    @Override
    public void onDone(String utteranceId) {
      Log.d(TAG, "Done with utterance " + utteranceId);
    }

    @Override
    public void onError(String s) { }
  };

  private final TextToSpeech.OnInitListener initListener = new OnInitListener() {
    @Override
    public void onInit(int status) {
      tts.setOnUtteranceProgressListener(progressListener);
      for (Voice voice : tts.getVoices()) {
        if (voice.getName().equals("en-us-x-iog-local")) {
          tts.setVoice(voice);
          tts.speak("1 2 3", TextToSpeech.QUEUE_ADD, new Bundle(), "utteranceId");
          break;
        }
      }
    }
  };

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    tts = new TextToSpeech(this, initListener);
  }

  @Override
  protected void onDestroy() {
    if (tts != null) {
      tts.shutdown();
    }
    super.onDestroy();
  }
}


We are excited to see this upgraded experience in your app!



from Android Developers Blog https://ift.tt/Fsx1Szp
via IFTTT

Thus the article Listen to our major Text to Speech upgrades for 64 bit devices.

Enough of the articles Listen to our major Text to Speech upgrades for 64 bit devices. this time, hopefully it can be of benefit to all of you. well, see you in another article post.


You are now reading the article Listen to our major Text to Speech upgrades for 64 bit devices. By address link https://cellphone-prices-and-specifications.blogspot.com/2022/09/listen-to-our-major-text-to-speech.html


Previous
Next Post »
0 Komentar untuk "Listen to our major Text to Speech upgrades for 64 bit devices."

Terima Kasih Sudah Berkomentar