{"id":37049091,"url":"https://github.com/lostmsu/pink-trombone-mod","last_synced_at":"2026-01-14T05:42:35.121Z","repository":{"id":48363258,"uuid":"365949824","full_name":"lostmsu/pink-trombone-mod","owner":"lostmsu","description":"Modularized version of the Pink Trombone voice synthesizer","archived":false,"fork":true,"pushed_at":"2021-07-29T22:11:41.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-11T13:53:58.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"chdh/pink-trombone-mod","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostmsu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-10T07:07:16.000Z","updated_at":"2021-07-29T22:11:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lostmsu/pink-trombone-mod","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lostmsu/pink-trombone-mod","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostmsu%2Fpink-trombone-mod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostmsu%2Fpink-trombone-mod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostmsu%2Fpink-trombone-mod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostmsu%2Fpink-trombone-mod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostmsu","download_url":"https://codeload.github.com/lostmsu/pink-trombone-mod/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostmsu%2Fpink-trombone-mod/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28411149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T05:42:34.410Z","updated_at":"2026-01-14T05:42:35.113Z","avatar_url":"https://github.com/lostmsu.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pink Trombone\n\n[![Pink Trombone on NuGet](https://img.shields.io/nuget/v/PinkTrombone)](https://www.nuget.org/packages/PinkTrombone/)\n\nThis is a revised version of the Pink Trombone speech\nsynthesizer originally developed by Neil Thapen in 2017.\nThe original source code was modularized and converted to TypeScript.\nThen the TypeScript code was converted to C#.\n\nPink Trombone uses two-dimensional\n[digital waveguide synthesis](https://en.wikipedia.org/wiki/Digital_waveguide_synthesis)\nto synthesize human speech sounds.\n\n**Online demo**: [chdh.github.io/pink-trombone-mod](https://chdh.github.io/pink-trombone-mod)\n\nScreenshot:\u003cbr/\u003e\n![Pink Trombone screenshot](WebVersionScreenshot.png)\n\n# Sample code\n\nYou can easily connect Pink Trombone to any audio framework, that accepts\n`float32` inputs. [An example](play) for [NAudio](https://github.com/naudio/NAudio):\n\n```csharp\npublic sealed class PinkTromboneSampleProvider : ISampleProvider {\n    public WaveFormat WaveFormat { get; }\n\n    readonly PinkThrombone pinkThrombone;\n\n    public PinkTromboneSampleProvider(int sampleRate) {\n        this.WaveFormat = WaveFormat.CreateIeeeFloatWaveFormat(sampleRate, 1);\n        this.pinkThrombone = new PinkThrombone(sampleRate);\n    }\n\n    public int Read(float[] buffer, int offset, int count) {\n        this.pinkThrombone.Synthesize(buffer.AsSpan().Slice(offset, count));\n        return count;\n    }\n}\n\nvar player = new WaveOutEvent {\n    NumberOfBuffers = 2,\n    DesiredLatency = 100,\n};\nvar trombone = new PinkTromboneSampleProvider(sampleRate: 48000);\nplayer.Init(trombone);\n\nplayer.Play();\n\nConsole.WriteLine(\"Press any key to stop\");\nConsole.ReadKey();\n\nplayer.Stop();\n```\n\n# .NET Framework 4\n\nThis package can be retrofitted to .NET 4/.NET Standard 1.x by replacing all `float`s\nwith `double`s and `MathF` references with `Math`.\n\n## Bibliographic references cited by Neil Thapen\n\n- Julius O. Smith III, \"Physical audio signal processing for virtual musical instruments and audio effects.\"\u003cbr\u003e\n  https://ccrma.stanford.edu/~jos/pasp/\n\n- Story, Brad H. \"A parametric model of the vocal tract area function for vowel and consonant simulation.\"\u003cbr\u003e\n  The Journal of the Acoustical Society of America 117.5 (2005): 3231-3254.\u003cbr\u003e\n  http://sal.arizona.edu/sites/default/files/story_jasa2005.pdf\n\n- Lu, Hui-Ling, and J. O. Smith. \"Glottal source modeling for singing voice synthesis.\"\u003cbr\u003e\n  Proceedings of the 2000 International Computer Music Conference, 2000.\n\n- Mullen, Jack. Physical modelling of the vocal tract with the 2D digital waveguide mesh.\u003cbr\u003e\n  PhD thesis, University of York, 2006.\u003cbr\u003e\n  http://www-users.york.ac.uk/~dtm3/Download/JackThesis.pdf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostmsu%2Fpink-trombone-mod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostmsu%2Fpink-trombone-mod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostmsu%2Fpink-trombone-mod/lists"}