News for hackers. Stuff that matters.
Re:Voc: a physical model of the vocal tract, written in ANSI C by userbinator on Monday June 12, 2017 @09:55PM (#14542436)
Interesting use of Knuth's literate programming concept. I remember reading about it and the source code of TeX in PDF format a long time ago, but now that I have a chance to read another piece of code written in it, I'm finding it less readable because of the proportional fonts than if it were equally-commented but in a more conventional monospace programming font.

Also, some samples of making it talk would be good, like: https://en.wikipedia.org/wiki/Voder

Re:Voc: a physical model of the vocal tract, written in ANSI C by zebproj on Monday June 12, 2017 @10:31PM (#14542526)
> I'm finding it less readable because of the proportional fonts than if it were equally-commented but in a more conventional monospace programming font.

My initial motivations for using literate programming with Voc was to take advantage of TeX's math mode to express what was happening numerically in code, as well as to have the ability to use BibTex inside the code.

> Also, some samples of making it talk would be good, like: https://en.wikipedia.org/wiki/Voder

At the bottom of the page, there are music examples on Vimeo, with plots of the 44 vocal tract diameters being manipulated in realtime:

https://vimeo.com/220091107

https://vimeo.com/220091290

https://vimeo.com/220091487

My goal was really to build vocalizations, and not necessarily to produce speech. This engine is a bit more low level than that. It could be possible to build a speech engine on top of Voc though... next steps perhaps?

Re:Voc: a physical model of the vocal tract, written in ANSI C by Jtsummers on Monday June 12, 2017 @10:35PM (#14542544)
The font issue should be fixable with some configuration. I personally do literate programming in org mode and generate HTML files from it for my colleagues and myself. With it, code blocks output to HTML use a fixed width font. I haven't checked the tex output (low priority, the HTML output is good enough for me).