Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4025262
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:49:27+00:00 2026-05-20T10:49:27+00:00

I created a small TTS app implementing OnUtteranceCompleteListener and, while things seem to be

  • 0

I created a small TTS app implementing OnUtteranceCompleteListener and, while things seem to be working exactly as expected, I noticed the following on LogCat (one for each completed utterance):

03-01 20:47:06.436:
VERBOSE/TtsService(381): TTS callback:
dispatch completed to 1

Again, this seems to be benign but I don’t understand what ‘1‘ means. All such lines for all utterances say “completed to 1“, even for utterance IDs that are greater than 1.

What does ‘1’ mean in this log?

BTW, this message is not generated by my code but rather by the TTS engine (Pico) itself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:49:28+00:00Added an answer on May 20, 2026 at 10:49 am

    Looking at the TTSService.java source code available at http://eyes-free.googlecode.com you can find the function dispatchUtteranceCompletedCallback():

    private void dispatchUtteranceCompletedCallback(String utteranceId, String packageName) {
        /* Legacy support for TTS */
        final int oldN = mCallbacksOld.beginBroadcast();
        for (int i = 0; i < oldN; i++) {
            try {
                mCallbacksOld.getBroadcastItem(i).markReached("");
            } catch (RemoteException e) {
                // The RemoteCallbackList will take care of removing
                // the dead object for us.
            }
        }
        try {
            mCallbacksOld.finishBroadcast();
        } catch (IllegalStateException e) {
            // May get an illegal state exception here if there is only
            // one app running and it is trying to quit on completion.
            // This is the exact scenario triggered by MakeBagel
            return;
        }
        /* End of legacy support for TTS */
        ITtsCallbackBeta cb = mCallbacksMap.get(packageName);
        if (cb == null) {
            return;
        }
        Log.v(SERVICE_TAG, "TTS callback: dispatch started");
        // Broadcast to all clients the new value.
        final int N = mCallbacks.beginBroadcast();
        try {
            cb.utteranceCompleted(utteranceId);
        } catch (RemoteException e) {
            // The RemoteCallbackList will take care of removing
            // the dead object for us.
        }
        mCallbacks.finishBroadcast();
        Log.v(SERVICE_TAG, "TTS callback: dispatch completed to " + N);
    }
    

    1 is the current value of N, which is initialized by the return value from mCallbacks.beginBroadcast().

    beginBroadcast() is a method of the class RemoteCallbackList and its documentation states that it:

    Returns the number of callbacks in the
    broadcast, to be used with
    getBroadcastItem(int) to determine the
    range of indices you can supply

    Does this help?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a small application which opens,reads and creates Excel files. The app
I have created a small and simple android app. I tried installing it on
How can i create TTS voice Packages? I have a small app converting text
Have created a small two tab app, then subclassed another view controller to create
I have created a small iPhone app using MonoTouch - got all provisioning files
I created a small vb.net console app in visual studio 2008 trying to learn
We created a small app, that tells your location. On some devices, if there
I created a small popup window in android app for login form shown in
I've created small database under SQL Server 2008 . Now i wanted to move
I created a small WPF desktop application. I am thinking about how to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.