Bug 115366 - WEB SPEECH: need to identify the default voice per language
Summary: WEB SPEECH: need to identify the default voice per language
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: chris fleizach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-29 11:17 PDT by chris fleizach
Modified: 2013-05-02 11:48 PDT (History)
1 user (show)

See Also:


Attachments
patch (6.67 KB, patch)
2013-04-29 17:19 PDT, chris fleizach
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris fleizach 2013-04-29 11:17:27 PDT
We need a way on the Mac platform to identify which voice for a language is the default
Comment 1 chris fleizach 2013-04-29 17:19:05 PDT
Created attachment 200062 [details]
patch
Comment 2 chris fleizach 2013-04-29 17:21:42 PDT
Adding Tim to help with review
Comment 3 Tim Horton 2013-04-29 17:28:32 PDT
Comment on attachment 200062 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=200062&action=review

> Source/WebCore/platform/mac/PlatformSpeechSynthesizerMac.mm:109
> +                // When we find the default voice for this language we can stop, but until then we have to keep searching.

Not sure this comment is useful, it's just describing exactly what the code already tells us.
Comment 4 chris fleizach 2013-04-29 17:30:55 PDT
(In reply to comment #3)
> (From update of attachment 200062 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=200062&action=review
> 
> > Source/WebCore/platform/mac/PlatformSpeechSynthesizerMac.mm:109
> > +                // When we find the default voice for this language we can stop, but until then we have to keep searching.
> 
> Not sure this comment is useful, it's just describing exactly what the code already tells us.

Nixed. Thanks
Comment 5 chris fleizach 2013-04-29 17:46:01 PDT
http://trac.webkit.org/changeset/149342
Comment 6 Tim Horton 2013-05-02 11:06:09 PDT
Hey, Chris, can you land the updated WKSI library? You've broken the open-source mac build, I think.
Comment 7 chris fleizach 2013-05-02 11:07:13 PDT
(In reply to comment #6)
> Hey, Chris, can you land the updated WKSI library? You've broken the open-source mac build, I think.

Damn sorry. On it
Comment 8 chris fleizach 2013-05-02 11:10:13 PDT
(In reply to comment #7)
> (In reply to comment #6)
> > Hey, Chris, can you land the updated WKSI library? You've broken the open-source mac build, I think.
> 
> Damn sorry. On it

Hmm. Are you sure? I don't see a build failure in waterfall, but my latest change for this only changed the implementation of WKSI. 

When I do an WKSI update, I see these updates ready to stage

 void WKCFURLRequestSetHTTPRequestBodyParts(CFMutableURLRequestRef, CFArrayRef bodyParts);
 
 void WKSetVisibleApplicationName(CFStringRef);
+void WKSetApplicationInformationItem(CFStringRef key, CFTypeRef value);
 
 CFURLRef WKCopyBundleURLForExecutableURL(CFURLRef);
 
@@ -494,7 +495,10 @@
 bool WKUnregisterOcclusionNotificationHandler(WKOcclusionNotificationType, WKOcclusionNotificationHandler);
 bool WKEnableWindowOcclusionNotifications(NSInteger windowID, bool *outCurrentOcclusionState);
 
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
 extern const NSSystemBehaviors WKProcessSuppressionSystemBehaviors;
+#pragma clang diagnostic pop
 #endif
 
 bool WKIsJavaPlugInActive(void);


Are those causing the problems?
Comment 9 Tim Horton 2013-05-02 11:48:33 PDT
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > Hey, Chris, can you land the updated WKSI library? You've broken the open-source mac build, I think.
> > 
> > Damn sorry. On it
> 
> Hmm. Are you sure? I don't see a build failure in waterfall, but my latest change for this only changed the implementation of WKSI. 

I don't see it on the bots either, but I see it locally building just Open Source on Mountain Lion.

It looks like you did add "SpeechSynthesisGetDefaultVoiceIdentifierForLocale" here, and that's the one it's complaining about.

> When I do an WKSI update, I see these updates ready to stage
> 
>  void WKCFURLRequestSetHTTPRequestBodyParts(CFMutableURLRequestRef, CFArrayRef bodyParts);
> 
>  void WKSetVisibleApplicationName(CFStringRef);
> +void WKSetApplicationInformationItem(CFStringRef key, CFTypeRef value);
> 
>  CFURLRef WKCopyBundleURLForExecutableURL(CFURLRef);
> 
> @@ -494,7 +495,10 @@
>  bool WKUnregisterOcclusionNotificationHandler(WKOcclusionNotificationType, WKOcclusionNotificationHandler);
>  bool WKEnableWindowOcclusionNotifications(NSInteger windowID, bool *outCurrentOcclusionState);
> 
> +#pragma clang diagnostic push
> +#pragma clang diagnostic ignored "-Wdeprecated-declarations"
>  extern const NSSystemBehaviors WKProcessSuppressionSystemBehaviors;
> +#pragma clang diagnostic pop
>  #endif
> 
>  bool WKIsJavaPlugInActive(void);
> 
> 
> Are those causing the problems?

Hmmmm, not sure what's up. I think someone already updated those yesterday. I'll look more tomorrow.