Commit e63abb92 authored by Yue Li's avatar Yue Li Committed by Commit Bot

Update Assistant voice match enrollment strings

String doc: go/CrosStrings

Bug: None
Test: Manual Test
Change-Id: I4f0a64ee0cb0cf172101da40758952fb9ceb2bca
Reviewed-on: https://chromium-review.googlesource.com/c/1481113Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Commit-Queue: Yue Li <updowndota@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634751}
parent 838c89ea
...@@ -3133,16 +3133,21 @@ ...@@ -3133,16 +3133,21 @@
Access your Assistant with Voice Match Access your Assistant with Voice Match
</message> </message>
<message name="IDS_ASSISTANT_VOICE_MATCH_MESSAGE" desc="Message for Assistant voice match screen."> <message name="IDS_ASSISTANT_VOICE_MATCH_MESSAGE" desc="Message for Assistant voice match screen.">
Your Assistant uses these recordings to create your voice model, which is stored in your device. Delete or retrain the model in Assistant settings. View or delete voice commands in your Google activity controls. Voice Match lets you access your Assistant directly by using your voice.
<ph name="BR">&lt;br&gt;</ph>
<ph name="BEGIN_BOLD">&lt;b&gt;</ph>Keep in mind:<ph name="END_BOLD">&lt;/b&gt;</ph> A similar voice or recording might be able to access your Assistant, too. You can remove Voice Match permission later by turning it off in Assistant Settings.
</message>
<message name="IDS_ASSISTANT_VOICE_MATCH_NO_DSP_MESSAGE" desc="Message without DSP support for Assistant voice match screen.">
To save battery, “Ok Google” is on only when your device is connected to a power source. To make changes, go to Settings.
</message> </message>
<message name="IDS_ASSISTANT_VOICE_MATCH_RECORDING" desc="Title for recording in assistant voice match screen."> <message name="IDS_ASSISTANT_VOICE_MATCH_RECORDING" desc="Title for recording in assistant voice match screen.">
Teach the Assistant to recognize your voice Teach your Assistant to recognize your voice
</message> </message>
<message name="IDS_ASSISTANT_VOICE_MATCH_COMPLETED" desc="Title for completed assistant voice match screen."> <message name="IDS_ASSISTANT_VOICE_MATCH_COMPLETED" desc="Title for completed assistant voice match screen.">
Ok Google is all set Ok Google is all set
</message> </message>
<message name="IDS_ASSISTANT_VOICE_MATCH_FOOTER" desc="Footer message for Assistant voice match screen."> <message name="IDS_ASSISTANT_VOICE_MATCH_FOOTER" desc="Footer message for Assistant voice match screen.">
Your Assistant uses these recordings and your spoken requests to create and update your voice model, which is only stored on devices where you've turned on Voice Match. View or delete voice activity in your Google activity controls. Your Assistant uses these recordings and your spoken requests to create and update your voice model, which is only stored on devices where you've turned on Voice Match. View or retrain voice activity in Assistant Settings.
</message> </message>
<message name="IDS_ASSISTANT_VOICE_MATCH_INSTRUCTION0" desc="Instruction message for assistant voice match recording."> <message name="IDS_ASSISTANT_VOICE_MATCH_INSTRUCTION0" desc="Instruction message for assistant voice match recording.">
Say "Ok Google" Say "Ok Google"
......
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
padding-bottom: 36px; padding-bottom: 36px;
} }
#no-dsp-message {
padding-top: 16px;
}
#footer-text { #footer-text {
color: #757575; color: #757575;
} }
......
...@@ -16,7 +16,11 @@ ...@@ -16,7 +16,11 @@
<img id="logo" src="assistant_logo.png"> <img id="logo" src="assistant_logo.png">
<div id="intro-container"> <div id="intro-container">
<div class="title" i18n-content="assistantVoiceMatchTitle"></div> <div class="title" i18n-content="assistantVoiceMatchTitle"></div>
<div class="content" i18n-content="assistantVoiceMatchMessage"> <div class="content"
i18n-values=".innerHTML:assistantVoiceMatchMessage">
</div>
<div class="content" id="no-dsp-message"
i18n-content="assistantVoiceMatchNoDspMessage">
</div> </div>
<div id="voice-match-video"> <div id="voice-match-video">
<video muted autoplay loop> <video muted autoplay loop>
......
...@@ -102,5 +102,8 @@ Polymer({ ...@@ -102,5 +102,8 @@ Polymer({
*/ */
onShow: function() { onShow: function() {
this.$['agree-button'].focus(); this.$['agree-button'].focus();
if (loadTimeData.getBoolean('hotwordDspAvailable')) {
this.$['no-dsp-message'].hidden = true;
}
}, },
}); });
...@@ -73,6 +73,7 @@ AssistantOptInUI::AssistantOptInUI(content::WebUI* web_ui) ...@@ -73,6 +73,7 @@ AssistantOptInUI::AssistantOptInUI(content::WebUI* web_ui)
source->SetJsonPath("strings.js"); source->SetJsonPath("strings.js");
source->AddResourcePath("assistant_optin.js", IDR_ASSISTANT_OPTIN_JS); source->AddResourcePath("assistant_optin.js", IDR_ASSISTANT_OPTIN_JS);
source->AddResourcePath("assistant_logo.png", IDR_ASSISTANT_LOGO_PNG); source->AddResourcePath("assistant_logo.png", IDR_ASSISTANT_LOGO_PNG);
source->AddBoolean("hotwordDspAvailable", chromeos::IsHotwordDspAvailable());
source->SetDefaultResource(IDR_ASSISTANT_OPTIN_HTML); source->SetDefaultResource(IDR_ASSISTANT_OPTIN_HTML);
content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source); content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source);
......
...@@ -71,6 +71,8 @@ void AssistantOptInFlowScreenHandler::DeclareLocalizedValues( ...@@ -71,6 +71,8 @@ void AssistantOptInFlowScreenHandler::DeclareLocalizedValues(
IDS_VOICE_INTERACTION_VALUE_PROP_RETRY_BUTTON); IDS_VOICE_INTERACTION_VALUE_PROP_RETRY_BUTTON);
builder->Add("assistantVoiceMatchTitle", IDS_ASSISTANT_VOICE_MATCH_TITLE); builder->Add("assistantVoiceMatchTitle", IDS_ASSISTANT_VOICE_MATCH_TITLE);
builder->Add("assistantVoiceMatchMessage", IDS_ASSISTANT_VOICE_MATCH_MESSAGE); builder->Add("assistantVoiceMatchMessage", IDS_ASSISTANT_VOICE_MATCH_MESSAGE);
builder->Add("assistantVoiceMatchNoDspMessage",
IDS_ASSISTANT_VOICE_MATCH_NO_DSP_MESSAGE);
builder->Add("assistantVoiceMatchRecording", builder->Add("assistantVoiceMatchRecording",
IDS_ASSISTANT_VOICE_MATCH_RECORDING); IDS_ASSISTANT_VOICE_MATCH_RECORDING);
builder->Add("assistantVoiceMatchCompleted", builder->Add("assistantVoiceMatchCompleted",
......
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