https://github.com/baxtree/wiki2ssml

Wiki2SSML provides the WikiVoice markup language used for fine-tuning synthesised voice.

https://github.com/baxtree/wiki2ssml

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.5%) to scientific vocabulary

Keywords

amazon-alexa google-assistant ibm-watson-speech microsoft-azure speech-synthesis ssml ssml-builder wikivoice-markups

Keywords from Contributors

labels
Last synced: 9 months ago · JSON representation

Repository

Wiki2SSML provides the WikiVoice markup language used for fine-tuning synthesised voice.

Basic Info
  • Host: GitHub
  • Owner: baxtree
  • License: apache-2.0
  • Language: JavaScript
  • Default Branch: master
  • Homepage:
  • Size: 362 KB
Statistics
  • Stars: 35
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 13
Topics
amazon-alexa google-assistant ibm-watson-speech microsoft-azure speech-synthesis ssml ssml-builder wikivoice-markups
Created over 7 years ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

Build Status Codecov Node GitHub license

Wiki2SSML

wiki2ssml can transform the WikiVoice markups into the W3C SSML widely supported by various text-to-speech services as an interchange format for synthesised voice tuning.

Install

sh $ npm install wiki2ssml or sh $ yarn add wiki2ssml

Introduction

wiki2ssml eases the burden of editors preparing scripts in SSML, widely understood by modern speech synthesisers including but not limited to Amazon Polly, Google TTS, IBM Watson TTS and Microsoft Azure TTS. It has been developed in Vanilla JavaScript and powered by WikiVoice which provides an unobtrusive solution of blending voice-tuning markups with free texts and creates seamless experiences of editing scripts and voices in one go.

WikiVoice

Format

[[attribute(:value)?(,attribute:value)*(|target)?]]

Supported Markups

| Expressions | Operations| | ------------- |-------------| | [[volume:SCALE|TEXT]] | Speaking volume | | [[speed:SCALE|TEXT]] | Speaking rate | | [[pitch:SCALE|TEXT]] | Speaking pitch | | [[silence:DURATION,strength:STRENGTH]] | Pause with duration and strength | | [[emphasis:LEVEL|TEXT]] | Emphasis with LEVEL | | [[audio:AUDIO_URI]] | Audio embedded into speech| | [[lang:LANGUAGE|TEXT]] | Language indicator | | [[paragraph|TEXT]] | Paragraph indicator | | [[sentence|TEXT]] | Sentence indicator | | [[type:TYPE|TEXT]] | Type it should be said as | | [[voice:NAME|TEXT]] | Voice name it should be said with | | [[pos:POS|TEXT]] | Part of speech it should be prounouced as | | [[substitute:TEXT1|TEXT2]] | Replace TEXT2 with TEXT1 as substitution | | [[alphabet:ALPHABET,pronunciation:PRONUNCIATION|TEXT]] | Phonetic pronunciation | | [[volume:SCALE,speed:SCALE,pitch:SCALE|TEXT]] | Speaking volume, rate and pitch | | [[type:TYPE,format:FORMAT,detail:DETAIL|TEXT]] | Type it should be said as | | [[mark:NAME]] | Mark referencing a location | | [[seeAlso:URI] | URI providing additional information about marked-up content] | [[cacheControl:no-cache]] | No caching on marked-up content | | [[lexicon:URI,type:TEXT]] | Location of the lexicon document and its media type | | *[[...]][[...]]...[[...]]* | <par> time container with one or more markups| | #[[...]][[...]]...[[...]]# | <seq> time container with one or more markups|

Vendor-Specific Markups

| Expressions | Operations| | ------------- |-------------| | [[amzWhispered|TEXT]] | Whispering | | [[amzPhonation:PHONATION|TEXT]] | Speaking Softly | | [[amzTimbre:SCALE|TEXT]] | Controlling Timbre | | [[amzDRC|TEXT]] | Dynamic Range Compression | | [[amzBreathDuration:SCALE,amzBreathVolume:SCALE]] | Breathing based on the manual model | | [[amzDefaultBreath]] | Default breathing based on the manual model | | [[amzAutoBreathsVolume:SCALE,amzAutoBreathsFrequency:SCALE,amzAutoBreathsDuration:SCALE|TEXT]] | Breathing based on the automated model | | [[amzDefaultAutoBreaths]] | Default breathing based on the automated model | | [[amzSpeakingStyle:STYLE|TEXT]] | Speaking style | | [[amzEmotion:EMOTION,amzIntensity:SCALE|TEXT]] | Speaking emotionally | | [[amzMaxDuration:DURATION#124;TEXT]] | Maximum Speech duration | | [[gglMediaSpeak|TEXT]] | Media container for speech | | [[gglMediaSpeakEnd:DURATION|TEXT]] | Media container for speech with the ending time | | [[gglMediaSpeakFadeIn:DURATION,gglMediaSpeakFadeOut:DURATION|TEXT]] | Media container for speach with fade | | [[gglMediaAudio:URI]] | Media container for audio | | [[gglMediaAudioFadeIn:DURATION,gglMediaAudioFadeOut:DURATION,gglMediaAudio:URI]] | Media container for audio with fade | | [[ibmExprType:TYPE|TEXT]] | Expressiveness type | | [[ibmTransType:TYPE,ibmTransStrength:SCALE|TEXT]] | Voice transformation | | [[ibmTransBreathiness:SCALE,ibmTransPitchRange:SCALE,ibmTransTimbre:SCALE|TEXT]] | Voice custom transformation | | [[voice:NAME|[[mstExprType:TYPE|TEXT]]]] | Voice-specific speaking style | | [[mstBackgroundAudio:URI,mstBackgroundAudioVolume:SCALE]] | Background audio and its volume | | [[mstBackgroundAudio:URI,mstBackgroundAudioFadeIn:SCALE,mstBackgroundAudioFadeOut:SCALE]] | Background audio with fade-in and fade-out | | [[mstExprStyle:STYLE,mstExprDegree:SCALE|TEXT]] | Speaking style and its intensity |

More details on canonical attribute values can be found at Speech Synthesis Markup Language (SSML). For ranges of vendor-specific values please refer to their online documents. Each attribute name in camel case can be rewritten in kebab case (e.g., firstSecondThird <=> first-second-third). Non-vendor-specific attributes can be abbreviated into their first three letters.

parseToSsml(input, languageCode, options)

  • input <string> (required)
  • languageCode <string> (required: RFC 1766)
  • options <object> (optional)
    • version <string> (default: "1.1")
    • pretty <boolean> (default: false)
    • encoding <string> (default: "UTF-8")

Example

js var parser = require("wiki2ssml"); try { var input = "[[volume:+2dB,speed:50%|Speak this with the volume increased by 2dB at half the default speech rate.]]"; var ssml = parser.parseToSsml(input, "en-GB", {pretty: true}); console.log(ssml); } catch (e) { if (e instanceof parser.SyntaxError) { // The input does not have valid WikiVoice markups } else if (e instanceof parser.ArgumentError) { // Either the input or the language code is missing } else { // Handle any unspecified exceptions } } will print out: xml <?xml version="1.0" encoding="UTF-8"?> <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-synthesis/synthesis.xsd" xml:lang="en-GB"> <prosody rate="50%" volume="+2dB">Speak this with the volume increased by 2dB at half the default speech rate.</prosody> </speak>

Owner

  • Name: Xi Bai
  • Login: baxtree
  • Kind: user

GitHub Events

Total
  • Release event: 1
  • Watch event: 1
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 2
  • Pull request event: 1
  • Create event: 1
Last Year
  • Release event: 1
  • Watch event: 1
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 2
  • Pull request event: 1
  • Create event: 1

Committers

Last synced: about 3 years ago

All Time
  • Total Commits: 57
  • Total Committers: 3
  • Avg Commits per committer: 19.0
  • Development Distribution Score (DDS): 0.158
Top Committers
Name Email Commits
baxtree x****d@g****m 48
dependabot[bot] 4****]@u****m 7
Xi Bai b****e@u****m 2

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 5
  • Total pull requests: 37
  • Average time to close issues: 3 days
  • Average time to close pull requests: about 2 months
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 0.8
  • Average comments per pull request: 0.84
  • Merged pull requests: 25
  • Bot issues: 0
  • Bot pull requests: 19
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • baxtree (5)
Pull Request Authors
  • dependabot[bot] (19)
  • baxtree (18)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
dependencies (19)

Packages

  • Total packages: 1
  • Total downloads:
    • npm 27 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 23
  • Total maintainers: 1
npmjs.org: wiki2ssml

Wiki2SSML provides the WikiVoice markup language used for fine-tuning synthesised voice.

  • Versions: 23
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 27 Last month
Rankings
Downloads: 5.6%
Stargazers count: 6.9%
Dependent repos count: 10.3%
Forks count: 15.4%
Average: 18.0%
Dependent packages count: 51.9%
Maintainers (1)
Last synced: 10 months ago

Dependencies

package-lock.json npm
  • 226 dependencies
package.json npm
  • chai ^4.2.0 development
  • codecov ^3.7.1 development
  • eslint ^5.16.0 development
  • istanbul ^0.4.5 development
  • mocha ^7.1.2 development
  • xml2js ^0.4.23 development
  • pegjs ^0.10.0
  • prettify-xml ^1.2.0
yarn.lock npm
  • 229 dependencies
.github/workflows/ci-pipeline.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite