{"id":19533523,"url":"https://github.com/zzw922cn/lpc_for_tts","last_synced_at":"2025-04-26T13:33:43.797Z","repository":{"id":43971791,"uuid":"349403595","full_name":"zzw922cn/LPC_for_TTS","owner":"zzw922cn","description":"Linear Prediction Coefficients estimation from mel-spectrogram implemented in Python based on Levinson-Durbin algorithm.","archived":false,"fork":false,"pushed_at":"2021-03-19T11:50:27.000Z","size":668,"stargazers_count":63,"open_issues_count":0,"forks_count":8,"subscribers_count":6,"default_branch":"main","last_synced_at":"2023-10-21T00:08:42.885Z","etag":null,"topics":["audiocompression","lpc","lpcnet","mel-spectrogram","tts","vocoder","wavernn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zzw922cn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-19T11:43:48.000Z","updated_at":"2023-08-30T16:07:40.000Z","dependencies_parsed_at":"2022-09-22T16:11:24.014Z","dependency_job_id":null,"html_url":"https://github.com/zzw922cn/LPC_for_TTS","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzw922cn%2FLPC_for_TTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzw922cn%2FLPC_for_TTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzw922cn%2FLPC_for_TTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzw922cn%2FLPC_for_TTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzw922cn","download_url":"https://codeload.github.com/zzw922cn/LPC_for_TTS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224036300,"owners_count":17245035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["audiocompression","lpc","lpcnet","mel-spectrogram","tts","vocoder","wavernn"],"created_at":"2024-11-11T02:08:15.013Z","updated_at":"2024-11-11T02:08:15.736Z","avatar_url":"https://github.com/zzw922cn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LPC_for_TTS\nLinear Prediction Coefficients estimation from mel-spectrogram implemented in Python based on Levinson-Durbin algorithm.\n\n基于Levinson-Durbin归纳法来做线性预测系数的估计。此代码可用于LPC系数的估计，也可用于LPCNet等合成器的特征提取。流程是从音频得到梅尔谱，梅尔谱得到LPC。\n\n```Python\nfrom audio import *\nimport numpy as np\nfrom hparams import Hparams as hparams\n\ninput_wav_file = 'test.wav'\nsample_rate = 24000\nlpc_order = 8\n\norig_audio, pred_audio, residual, lpcs = lpc_audio(input_wav_file, lpc_order, hparams)\n\nsave_wav(pred_audio, 'wavs/pred.wav', hparams)\nsave_wav(orig_audio, 'wavs/orig.wav', hparams)\nsave_wav(residual, 'wavs/error.wav', hparams)\n```\n\nRaw audio:\n![image](https://user-images.githubusercontent.com/11649939/111761869-562df580-88db-11eb-933f-be4c07712d25.png)\n\nPredicted audio:\n![image](https://user-images.githubusercontent.com/11649939/111761943-67770200-88db-11eb-957d-73197d9e4e46.png)\n\nPrediction error:\n![image](https://user-images.githubusercontent.com/11649939/111762018-7b226880-88db-11eb-9efb-43c32ff942ae.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzw922cn%2Flpc_for_tts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzw922cn%2Flpc_for_tts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzw922cn%2Flpc_for_tts/lists"}