Code Monkey home page Code Monkey logo

Comments (10)

smplman avatar smplman commented on July 29, 2024

@zlsa what icon pack are you using for the controls? I have been looking into implementing ionicons, but I didn't want to change them over if you were already using an icon pack.

https://github.com/driftyco/ionicons

from atc.

zlsa avatar zlsa commented on July 29, 2024

The icons were all handmade in Inkscape. If you want any additional icon, I can make it.

from atc.

daviessm avatar daviessm commented on July 29, 2024

I had a play and added speech synthesis for readbacks using the W3C web speech API. There's no on/off switch and on my machine (Chromium 39 on Linux) the speech gets stuck after every readout so I have to call speech.cancel() manually each time but it does read things out. Also I needed to start Chromium with the --enable-speech-dispatcher parameter for it to work.

https://github.com/daviessm/atc/commit/116836f7fa70c09352b563808e1b9c3e0c2791ff

from atc.

Diastro avatar Diastro commented on July 29, 2024

@daviessm hahahaha! I just cloned your repo to test and I gotta say it's pretty cool! I'd be amazing if the voice could be a little more "natural".

Still pretty cool.

I don't think read-back should be on by default but if we could add a button to enable/toggle this and maybe work on the voice it'd be a great addition!

from atc.

daviessm avatar daviessm commented on July 29, 2024

@Diastro The speech is done through the browser which calls OS libraries to do the actual synthesis. How it sounds will depend entirely on that. I've just tried it on my Android phone (5.0.1) and it sounds pretty natural.

Agree about the on-by-default but I suck at UI design so I'll leave that up to someone else. It would be easy enough to add another variable speechOn or something to speech.js and toggle it.

I would also like to have it pick random voices for each plane. So some are male and some are female. And have the tower controller as yet another voice.

from atc.

Diastro avatar Diastro commented on July 29, 2024

@daviessm Gotcha. Yeah regarding UI @zlsa is probably the best person to help for that last part.

from atc.

Diastro avatar Diastro commented on July 29, 2024

Can we close this?

from atc.

daviessm avatar daviessm commented on July 29, 2024

@smp4488 Sorry to have kind of jumped past you on this - does it do what you were thinking of?

from atc.

smplman avatar smplman commented on July 29, 2024

@daviessm it's all good. Holidays have me all tied up. I haven't had a chance to look at your changes yet, but you can see what I have added here https://github.com/smp4488/atc. I created a voice / voices model wanting to offer the user a choice of the available system voices. I have most of it hashed out, but the ui still needs a little love.

from atc.

daviessm avatar daviessm commented on July 29, 2024

@smp4488 The additions I made weren't configurable at all - it just adds a call to the speech synthesis API. @zlsa added an on/off toggle to that. I think it'd be worthwhile to have a UI for changing other settings too.

from atc.

Related Issues (20)

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.