Giter VIP home page Giter VIP logo

linkatype-desktop's Introduction

distypepro-desktop

program for tts

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:9080
npm run dev

# build electron application for production
npm run build


# lint all JS/Vue component files in `src/`
npm run lint

This project was generated with electron-vue using vue-cli. Documentation about the original structure can be found here.

linkatype-desktop's People

Contributors

ayeropudov avatar ibakaidov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

linkatype-desktop's Issues

Не запускается на ubuntu 16.04

Сделал npm install.
Делаю npm run dev выдаёт ошибку синтаксиса:

i1@cashalot:~/src/aacidov/DisTypePro-desktop$ npm run dev

> [email protected] dev /home/i1/src/aacidov/DisTypePro-desktop
> node .electron-vue/dev-runner.js

/home/i1/src/aacidov/DisTypePro-desktop/.electron-vue/dev-runner.js:6
const { say } = require('cfonts')
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

npm ERR! Linux 4.4.0-97-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev: `node .electron-vue/dev-runner.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] dev script 'node .electron-vue/dev-runner.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the distypepro package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node .electron-vue/dev-runner.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs distypepro
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls distypepro
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/i1/src/aacidov/DisTypePro-desktop/npm-debug.log

Tts fix

маленький фикс Tts.
`

import say from 'say';
import yakit from './yandexspeechkit';
import wsay from './wsay'

import SettingsVue from '../components/LandingPage/Settings.vue'

const isWin = process.platform === 'win32'
const yaapikey = 'a095c3ee-6695-4311-bae4-e875dca7e131'

let settings = SettingsVue.data();

yakit.call(window)

let speaking = false;
const speech = {
yatts: null,

initya() {
this.yatts = window.ya.speechkit.Tts(
    // Настройки синтеза. Список доступных настроек см. в справочнике.
    {
        // API-ключ. Может быть задан глобально через объект ya.speechkit.settings.
        apikey: yaapikey
    }
);
},

speak(text) {
    this.stop()

    if (settings.settings.tts.offline) {
        if (isWin) {
            wsay.say(text)
            return;
        }
        this.speak(text);
        return;
    }
    if (this.yatts == null) {
        this.initya();
    }
    this.yatts.speak(text, {
        speaker: settings.settings.tts.voice,
        stopCallback() {

        }
    });
},
stop() {
    if (settings.settings.tts.offline) {
        if (isWin) {
            wsay.stop()
            return
        }
        this.stop()
        return
    }
    if (this.yatts != null) {
        return
    }
}

}

export default speech

`

TODO

Примерный todo, позже расширю и добавлю новые пункты:

  • Сделать настройки
  • Добавить yandex speechkit

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.