English 中文(简体)
为什么SSML组群不改变音响的帽
原标题:Why is SSML contour tag not changing the hz of the audio
The bounty expires in 9 hours. Answers to this question are eligible for a +350 reputation bounty. daniel wants to draw more attention to this question:
I want contour attribute to change the inflection or intonation of the text spoken.

我从W3.org处接过这支SSML。 AVSpeechUtterance(ssmlRepresentation:)没有遵守轮船。 它没有变化。 它总是在同一个层次上发挥作用。 使用Im:Xcode 15.3,B.8装置与SOS 16.7.5,Sex。

这里的表述价值为 s。 SSML with contour tag

<?xml version="1.0"?>
<speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
                 http://www.w3.org/TR/speech-synthesis11/synthesis.xsd"
       xml:lang="en-US">
  <prosody contour="(0%,90Hz) (40%,90Hz) (0%,90Hz)">
    good morning
  </prosody>
</speak>

我的法典:

override func viewDidLoad() {
    super.viewDidLoad()
    
    guard let localUtterance = AVSpeechUtterance(ssmlRepresentation: self.speechSML)         else {
        print("SML did not work.")
        return
    }
    self.utterance = localUtterance
    self.utterance.voice = self.voiceNoelle
}

self.synthesizer.speak(self.utterance)
问题回答

轮船的绝对值为90赫兹,应具有不同的相对价值,以加/或列出价值。 (见下文链接) 另外,每张奶制品的比例应当有所不同。

So rather than this:

<prosody contour="(0%,90Hz) (40%,90Hz) (0%,90Hz)">

它应当更像这一点(取决于所期望的itch变):

<prosody contour="(0%,+20Hz) (40%,+10Hz) (80%,-10Hz)">

https://learn.microsoft.com/en-us/azure/ai-services/speech-service/speech-synthesis-markup-voice#adjust-prosody”rel=“nofollow noreferer” 链接:

每一套参数的第一项价值具体指明了itch虫变化在案文的一定时期内的位置。 第二项价值通过使用itch的相对价值或列举价值(见Pitch)来确定itch虫的含量。





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签