class TextSenderThread extends Thread {

    public void sendData(final SpeakableText speakable) {
        final String ssml = speakable.getSpeakableText();
        final TextMessage message = TextMessage.newBuilder()
                .setType(TextMessageType.SSML).setData(ssml)
                .setSequenceNumber(sequenceNumber++).build();
        final PendingMessage pending = new PendingMessage(message, speakable);
        messages.add(pending);
    }

      TextSenderThread(final Socket asyncSocket,
            final TextTelephony textTelephony);

}