SpeechMarkdown

Speech Markdown transpiler for Elixir

This library converts text in the Speech Markdown format to SSML for processing by Text-To-Speech APIs, etc.

Status

Hex CircleCI Coverage

The API reference is available here.

Installation

def deps do
  [
    {:speechmarkdown, "~> 0.1"}
  ]
end

Usage

iex> SpeechMarkdown.Transpiler.transpile!("You say pecan, I say (pecan)[/pɪˈkɑːn/].")
<?xml version="1.0"?>
<speak>You say pecan, I say <phoneme alphabet="ipa" ph="pɪˈkɑːn">pecan</phoneme>.</speak>

The following Speech Markdown modifiers are supported:

License

Copyright 2020 Spokestack, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.