New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supplying SSML to #ask and #say does not use #output_formatter #473
Comments
Actually...I'm wrong about this. The problem is passing SSML into |
Is this |
The formatter is applied, but it does this: def ssml_for_collection(collection)
collection = collection.compact
raise NoDocError if collection.empty?
collection.inject RubySpeech::SSML.draw do |doc, argument|
doc + case argument
when Hash
ssml_for argument.delete(:value), argument
when RubySpeech::SSML::Speak
argument
when lambda { |a| a.respond_to? :each }
ssml_for_collection argument
else
ssml_for argument
end
end
end SSML documents are passed through unaffected. Again, what might you want done with them? |
Closing for inactivity. |
Reopening because I've run into it again. What I'm looking for is a way to specify application-wide defaults for things like prosody (I think we already covered voice). One way would simply be to add config items for what we need, like we did for voice. Alternatively, I'd like some global override that we can use to wrap the SSML that gets passed into |
#output_formatter
was created as a convenient way to provide default SSML formatting, and it is used by#say
, but it is not used by#ask
.The text was updated successfully, but these errors were encountered: