Skip to content

Instantly share code, notes, and snippets.

@xycui
Created August 10, 2018 07:26
Show Gist options
  • Save xycui/647baa3190eef89e93f8cddc3c2f18a1 to your computer and use it in GitHub Desktop.
Save xycui/647baa3190eef89e93f8cddc3c2f18a1 to your computer and use it in GitHub Desktop.

Phoneme for pinyin

<speak version="1.0"
 xmlns="http://www.w3.org/2001/10/synthesis"
 xml:lang="zh-CN">

  <s>
   南京<phoneme alphabet="x-microsoft-sapi" ph="shi 4 zhang 3">市长</phoneme>江大桥 
  </s>

</speak>
@xycui
Copy link
Author

xycui commented Aug 10, 2018

{
    "FallBackVocalSetting": {
        "VoiceFont": "",
        "Rate": 0.8,
        "RateString": "-20.00%",
        "Gender": 1,
        "Language": "zh-CN"
    },
    "VocalSegments": [
        {
            "SegmentId": "1533294537761",
            "Description": "",
            "BgSoundDesc": {
                "AudioLink": "1067b4c7efcfeb7f5c739a5b2120409fe.mp3",
                "VolumeTune": 0.53
            },
            "ResourceUnits": [
                {
                    "BgEnable": true,
                    "UnitType": "Vocal",
                    "RepeatTime": 1,
                    "VocalText": ""
                },
                {
                    "BgEnable": true,
                    "UnitType": "Resource",
                    "ResUri": "",
                    "RepeatTime": 2,
                    "VocalText": ""
                },
                {
                    "BgEnable": true,
                    "Ssml": "<speak version=\"1.0\" xmlns=\"http://www.w3.org/2001/10/synthesis\" xmlns:mstts=\"http://www.w3.org/2001/mstts\" xmlns:emo=\"http://www.w3.org/2009/10/emotionml\" xml:lang=\"zh-CN\"><voice name=\"\"><emo:emotion><emo:category name=\"neutral\" value=\"1.0\" /></emo:emotion><prosody rate=\"-20.00%\">今天<phoneme alphabet=\"x-microsoft-sapi\" ph=\"dei 3\">的</phoneme>故事叫做,废品小<phoneme alphabet=\"x-microsoft-sapi\" ph=\"le 4\">乐</phoneme>队</prosody></voice></speak>"
                },
                {
                    "BgEnable": true,
                    "UnitType": "Resource",
                    "ResUri": "1dc607e582b81991e8c85e8047e4c8099.mp3",
                    "RepeatTime": 1,
                    "VocalText": ""
                },
                {
                    "BgEnable": true,
                    "UnitType": "Vocal",
                    "RepeatTime": 1,
                    "VocalText": ""
                }
            ]
        },
        {
            "SegmentId": "1533294616254",
            "Description": "",
            "BgSoundDesc": {
                "AudioLink": "1e1156b46038c972828378f5d7833b97b.mp3",
                "VolumeTune": 0.71
            },
            "ResourceUnits": [
                {
                    "BgEnable": true,
                    "UnitType": "Vocal",
                    "RepeatTime": 1,
                    "VocalText": ""
                }
            ]
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment