Commit b642822f authored by Etienne Bergeron's avatar Etienne Bergeron Committed by Commit Bot

Move ISpVoice instance to a worker thread

This CL is moving the speech synthesizer code to a worker thread.

The TtsPlatformImpl is using an ISpVoice COM interface to perform
text-to-speech actions. The instance was living on the UI Main
Thread which was using STA Apartment.

This CL is splitting the logic in two parts. The first part is the
control logic which stay on the UI Thread. The second part is the
synthesizer logic which is running on a worker thread.

Bug: 869399, 1133813
Change-Id: I8f8d939950cc39637f87d101ed362123a51e985e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2462341
Commit-Queue: Etienne Bergeron <etienneb@chromium.org>
Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820340}
parent 945d831a
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment