Coder Social home page Coder Social logo

ofxvoicesynthesizer's Introduction

ofxVoiceSynthesizer (OSX)

How to use

  1. Add AppKit.framework to your project
  2. Add ofxVoiceSynthesizer & ofxObjective-C++Utility to your project and include ofxVoiceSynthesizer.h
  3. Rename all files have extention like .cpp to .mm / Or, open Project Setting -> TARGETS -> Build Phases -> Compile Sources, and add flag "-x objective-c++" for all file of .cpp

Dependencies

ofxObjective-C++Utility [https://github.com/2bbb/ofxObjective-C--Utility]

API

ofxVoiceSynthesizer

  • static vector getVoices()

return vector of voice names like com.apple.speech.synthesis.voice.kyoko

  • static getDefaultVoice()

return voice name of your system default

  • void setup(string voiceName, string successMessage, string failureMessage)

successMessage (default "ofxVoiceSysnthesizerSuccess") and failureMessage (default "ofxVoiceSysnthesizerFailure") is post by ofSendMessage when finish speaking with success or failure.

  • float getRate()
  • void setRate(float rate)

get/set speaking rate.

  • float getVolume()
  • void setVolume(float volume)

get/set speaking volume.

  • void speak(string text)

Start to speak text.

  • bool isSpeaking()

return true when speaking

  • void stopSpeaking()

Stop speaking.

Update history

2013/07/18 ver 0.01 beta release

  • Let's speak!!

License

MIT License.

Author

  • ISHII 2bit [bufferRenaiss co., ltd.]
  • ishii[at]buffer-renaiss.com

At the last

Please create new issue, if there is a problem. And please throw pull request, if you have a cool idea!!

ofxvoicesynthesizer's People

Contributors

2bbb avatar

Stargazers

 avatar Alessandro Aresta avatar asagi_tokyo avatar Noriyuki Fujimura avatar Satoru Higa avatar

Watchers

 avatar James Cloos avatar

Forkers

nagyistge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.