Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 2180263002: Host side implementation of ARC tts. (Closed)

Created:
4 years, 4 months ago by David Tseng
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blundell+watchlist_chromium.org, chromium-reviews, darin (slow to review), droger+watchlist_chromium.org, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, qsr+mojo_chromium.org, sdefresne+watchlist_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Host side implementation of ARC tts. This cl exposes ARC tts as a single voice through the Chrome tts api. Since ARC tts engines can and do manage their own voices, it is left to the user to pick a system voice inside of ARC. This also mitigates the issue of multiple tts engines speaking at once which can also occur if two separate ARC tts engines are used. BUG=628963 TEST=build both sides and exercise tts features including start, end, interrupted, error events. In addition, observe queued and flushed speak calls through ChromeVox. Make adjustments in rate and pitch through the possible ranges (0 to 5.0) and observe expected changes. Do this for multiple engines from the Play Store. Committed: https://crrev.com/9ea8fa35f638c4be2d32196e20348d3f05112a93 Cr-Commit-Position: refs/heads/master@{#409267}

Patch Set 1 #

Total comments: 28

Patch Set 2 : Address feedback. #

Patch Set 3 : Split out TtsHost impl only. #

Patch Set 4 : Override #

Total comments: 6

Patch Set 5 : Move service to c/b/chromeos/arc #

Patch Set 6 : Fixup namespace. #

Total comments: 8

Patch Set 7 : Address last round. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -13 lines) Patch
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_tts_service.h View 1 2 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_tts_service.cc View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_chromeos.cc View 1 2 3 4 5 6 2 chunks +46 lines, -11 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/arc_bridge_host_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/arc_bridge_host_impl.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M components/arc/common/arc_bridge.mojom View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
A components/arc/common/tts.mojom View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (17 generated)
David Tseng
hidehiko for arc dmazzoni for tts
4 years, 4 months ago (2016-07-26 15:38:46 UTC) #3
hidehiko
https://codereview.chromium.org/2180263002/diff/1/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/2180263002/diff/1/components/arc/BUILD.gn#newcode57 components/arc/BUILD.gn:57: "tts/arc_tts_service.cc", Could you update gyp file, too? https://codereview.chromium.org/2180263002/diff/1/components/arc/common/arc_bridge.mojom File ...
4 years, 4 months ago (2016-07-26 17:59:18 UTC) #5
dmazzoni
https://codereview.chromium.org/2180263002/diff/1/components/arc/tts/arc_tts_service.cc File components/arc/tts/arc_tts_service.cc (right): https://codereview.chromium.org/2180263002/diff/1/components/arc/tts/arc_tts_service.cc#newcode49 components/arc/tts/arc_tts_service.cc:49: TtsController::GetInstance()->OnTtsEvent(id, chrome_event_type, 0, ""); To match other engines, I ...
4 years, 4 months ago (2016-07-26 22:12:58 UTC) #6
Luis Héctor Chávez
drive-by https://codereview.chromium.org/2180263002/diff/1/chrome/browser/speech/tts_chromeos.cc File chrome/browser/speech/tts_chromeos.cc (right): https://codereview.chromium.org/2180263002/diff/1/chrome/browser/speech/tts_chromeos.cc#newcode42 chrome/browser/speech/tts_chromeos.cc:42: arc::mojom::TtsInstance* tts = GetArcTts(); DCHECK_CURRENTLY_ON(BrowserThread::UI); https://codereview.chromium.org/2180263002/diff/1/chrome/browser/speech/tts_chromeos.cc#newcode56 chrome/browser/speech/tts_chromeos.cc:56: arc::mojom::TtsInstance* ...
4 years, 4 months ago (2016-07-26 22:48:12 UTC) #8
David Tseng
https://codereview.chromium.org/2180263002/diff/1/components/arc/BUILD.gn File components/arc/BUILD.gn (right): https://codereview.chromium.org/2180263002/diff/1/components/arc/BUILD.gn#newcode57 components/arc/BUILD.gn:57: "tts/arc_tts_service.cc", On 2016/07/26 17:59:18, hidehiko wrote: > Could you ...
4 years, 4 months ago (2016-07-27 22:51:00 UTC) #9
hidehiko
You may forget to add the moved files?
4 years, 4 months ago (2016-07-28 05:39:53 UTC) #10
David Tseng
On 2016/07/28 05:39:53, hidehiko wrote: > You may forget to add the moved files? No, ...
4 years, 4 months ago (2016-07-28 19:32:39 UTC) #11
hidehiko
Sorry, I misunderstood your intention. https://codereview.chromium.org/2180263002/diff/1/chrome/browser/speech/tts_chromeos.cc File chrome/browser/speech/tts_chromeos.cc (right): https://codereview.chromium.org/2180263002/diff/1/chrome/browser/speech/tts_chromeos.cc#newcode42 chrome/browser/speech/tts_chromeos.cc:42: arc::mojom::TtsInstance* tts = GetArcTts(); ...
4 years, 4 months ago (2016-07-29 09:25:53 UTC) #12
David Tseng
https://codereview.chromium.org/2180263002/diff/1/chrome/browser/speech/tts_chromeos.cc File chrome/browser/speech/tts_chromeos.cc (right): https://codereview.chromium.org/2180263002/diff/1/chrome/browser/speech/tts_chromeos.cc#newcode42 chrome/browser/speech/tts_chromeos.cc:42: arc::mojom::TtsInstance* tts = GetArcTts(); On 2016/07/26 22:48:11, Luis Héctor ...
4 years, 4 months ago (2016-08-01 20:21:42 UTC) #13
Luis Héctor Chávez
https://codereview.chromium.org/2180263002/diff/100001/components/arc/common/tts.mojom File components/arc/common/tts.mojom (right): https://codereview.chromium.org/2180263002/diff/100001/components/arc/common/tts.mojom#newcode17 components/arc/common/tts.mojom:17: [Extensible] structs are always extensible, so this attribute is ...
4 years, 4 months ago (2016-08-01 20:29:53 UTC) #14
hidehiko
+rickyz@ for components/arc/common OWNER review. PTAL? LGTM for */arc/* with minor comments. Defer to other ...
4 years, 4 months ago (2016-08-02 03:56:20 UTC) #16
rickyz (no longer on Chrome)
mojom lgtm
4 years, 4 months ago (2016-08-02 04:04:08 UTC) #17
David Tseng
https://codereview.chromium.org/2180263002/diff/100001/chrome/browser/chromeos/arc/arc_tts_service.h File chrome/browser/chromeos/arc/arc_tts_service.h (right): https://codereview.chromium.org/2180263002/diff/100001/chrome/browser/chromeos/arc/arc_tts_service.h#newcode18 chrome/browser/chromeos/arc/arc_tts_service.h:18: class ArcTtsService : public ArcService, On 2016/08/02 03:56:20, hidehiko ...
4 years, 4 months ago (2016-08-02 16:32:19 UTC) #18
hidehiko
BTW, could you run trybots, too? https://codereview.chromium.org/2180263002/diff/120001/components/arc/common/arc_bridge.mojom File components/arc/common/arc_bridge.mojom (right): https://codereview.chromium.org/2180263002/diff/120001/components/arc/common/arc_bridge.mojom#newcode95 components/arc/common/arc_bridge.mojom:95: [MinVersion=16] OnTt sInstanceReady@123(TtsInstance ...
4 years, 4 months ago (2016-08-02 16:36:41 UTC) #19
David Tseng
On 2016/08/02 16:36:41, hidehiko wrote: > BTW, could you run trybots, too? > > https://codereview.chromium.org/2180263002/diff/120001/components/arc/common/arc_bridge.mojom ...
4 years, 4 months ago (2016-08-02 17:15:13 UTC) #26
hidehiko
lgtm
4 years, 4 months ago (2016-08-02 17:33:45 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2180263002/160001
4 years, 4 months ago (2016-08-02 19:11:20 UTC) #32
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 4 months ago (2016-08-02 19:21:59 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 19:23:18 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/9ea8fa35f638c4be2d32196e20348d3f05112a93
Cr-Commit-Position: refs/heads/master@{#409267}

Powered by Google App Engine
This is Rietveld 408576698