Coder Social home page Coder Social logo

maryosc's Introduction

MaryOSC

Simple OSC server for MaryTTS Text to Speech Synthesis Platform

Requirements

Java JDK 1.8

Run

Run server in port 9000:

gradlew run --console=plain"

or in custom port:

gradlew run --console=plain --args="8004"

or create distributable under /build/distributions

gradlew build

Usage

/mary/say

1 Argument: string. Speaks given string.

/mary/save

2 string arguments: path and text. Saves spoken text to given path. Use full path name or home directory like '~/samples/great.wav'.

/mary/voice

1 Argument: int or string. Changes voice with index or voice name. List available voices using '-v' in console.

/mary/effects

1 Argument: string. Adds effects to the synthetiser. List available effects using '-e' in console.

/mary/locale

1 Argument: string. Changes locale. List available locales using '-l' in console.

Credits

Thank Mary, obviously.

maryosc's People

Contributors

amiika avatar

Stargazers

Lizzie  avatar  avatar Ozgur avatar

Watchers

James Cloos avatar  avatar  avatar

maryosc's Issues

Cannot run it on Windows 10.

Hi :)

anyone has tried it on Windows? I'm having troubles running the server.
First I try using gradlew run --console=plain and then building a distributable and the error is the same.

> Task :compileJava UP-TO-DATE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE

> Task :run
marytts.exceptions.MaryConfigurationException: Cannot start MARY server
        at marytts.LocalMaryInterface.<init>(LocalMaryInterface.java:66)
        at maryosc.MaryUtil.<init>(MaryUtil.java:37)
        at maryosc.MaryOSC.<clinit>(MaryOSC.java:13)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
        at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3720)
        at java.base/java.lang.String.substring(String.java:1909)
        at marytts.server.EnvironmentChecks.check(EnvironmentChecks.java:46)
        at marytts.server.Mary.startup(Mary.java:286)
        at marytts.server.Mary.startup(Mary.java:204)
        at marytts.util.MaryRuntimeUtils.ensureMaryStarted(MaryRuntimeUtils.java:72)
        at marytts.LocalMaryInterface.<init>(LocalMaryInterface.java:64)
        ... 2 more

(I don't know how to see the "... 2 more" errors)

I can use the commands '-h', '-e' without issues.

When I run '-v' it gives this message:

--------------VOICES------------------
java.lang.NullPointerException
        at maryosc.MaryUtil.printVoices(MaryUtil.java:104)
        at maryosc.MaryOSC.handleInput(MaryOSC.java:101)
        at maryosc.MaryOSC.main(MaryOSC.java:48)

BUILD SUCCESSFUL in 7s
2 actionable tasks: 1 executed, 1 up-to-date

and then it closes.

When I run '-l' it gives this message:

-------------LOCALES------------
java.lang.NullPointerException
        at maryosc.MaryUtil.printLocales(MaryUtil.java:90)
        at maryosc.MaryOSC.handleInput(MaryOSC.java:109)
        at maryosc.MaryOSC.main(MaryOSC.java:48)

BUILD SUCCESSFUL in 16s
2 actionable tasks: 1 executed, 1 up-to-date

and it closes.

Any idea of what could be the issue?

Thanks for your help :)

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.