@simplexai/localmodels-linux-arm64 0.1.0-dev.102 → 0.1.0-dev.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bootstrap.identity +1 -1
- package/bootstrap.sha256 +46 -27
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/__main__.py +3 -1
- package/modules/localmodels/catalog.json +306 -1
- package/modules/localmodels/cli_parser.py +4 -0
- package/modules/localmodels/debug_stub_server.py +280 -7
- package/modules/localmodels/download-mirrors.json +76 -0
- package/modules/localmodels/engines-speechcpp-v0.11.3.json +84 -0
- package/modules/localmodels/library_serve.py +46 -26
- package/modules/localmodels/remote_ops_common.py +12 -2
- package/modules/localmodels/sidecar_downloads.py +426 -0
- package/modules/localmodels/sidecar_http.py +396 -0
- package/modules/localmodels/sidecar_state.py +466 -0
- package/modules/localmodels/speech_admission.py +13 -0
- package/modules/localmodels/speech_jobs.py +81 -370
- package/modules/localmodels/speech_server.py +17 -8
- package/modules/localmodels/speech_state.py +87 -454
- package/modules/localmodels/speech_workers.py +41 -163
- package/modules/localmodels/stack.py +18 -0
- package/modules/localmodels/stack_down.py +19 -14
- package/modules/localmodels/stack_ports.py +1 -0
- package/modules/localmodels/stack_up.py +51 -1
- package/modules/localmodels/strata_poly_server.py +140 -3
- package/modules/localmodels/tts-moss.txt +321 -0
- package/modules/localmodels/tts_admission.py +396 -0
- package/modules/localmodels/tts_backend_speechcpp.py +487 -0
- package/modules/localmodels/tts_catalog.py +251 -0
- package/modules/localmodels/tts_cli.py +333 -0
- package/modules/localmodels/tts_http.py +617 -0
- package/modules/localmodels/tts_jobs.py +496 -0
- package/modules/localmodels/tts_model.py +591 -0
- package/modules/localmodels/tts_moss_presets.json +1 -0
- package/modules/localmodels/tts_serve.py +451 -0
- package/modules/localmodels/tts_sidecar.py +750 -0
- package/modules/localmodels/tts_state.py +395 -0
- package/modules/localmodels/tts_worker_kokoro.py +463 -0
- package/modules/localmodels/tts_worker_moss.py +748 -0
- package/modules/localmodels/tts_workers.py +696 -0
- package/modules/{simplex_localmodels-0.1.0.dev102.dist-info → simplex_localmodels-0.1.0.dev103.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev102.dist-info → simplex_localmodels-0.1.0.dev103.dist-info}/RECORD +43 -24
- package/modules/{simplex_localmodels-0.1.0.dev102.dist-info → simplex_localmodels-0.1.0.dev103.dist-info}/licenses/NOTICE +29 -0
- package/package.json +1 -1
- package/tool.json +1 -1
- /package/modules/{simplex_localmodels-0.1.0.dev102.dist-info → simplex_localmodels-0.1.0.dev103.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev102.dist-info → simplex_localmodels-0.1.0.dev103.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev102.dist-info → simplex_localmodels-0.1.0.dev103.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"schema":"localmodels.tts-moss-presets/v1","tts_config":{"n_vq":16,"audio_codebook_size":1024,"global_layers":12,"audio_pad_token_id":1024,"audio_start_token_id":6,"audio_end_token_id":7,"audio_user_slot_token_id":8,"audio_assistant_slot_token_id":9},"codec_config":{"sample_rate":48000,"channels":2,"num_quantizers":16,"transformer_offset_count":4,"attention_contexts":[500,500,500,500,800,800,1200,1200,1600,1600,1600,1600],"attention_num_heads":4,"attention_head_dim":64},"prompt_templates":{"user_prompt_prefix_token_ids":[600,289,10356,13,10356,10425,1860,4546,12907,10363,13325,11492],"user_prompt_after_reference_token_ids":[10356,10425,3965,7738,11492,505,587,10356,10425,352,500,856,11492,505,587,10356,10425,2128,1247,594,11492,505,587,10356,10425,348,909,561,3648,11492,505,587,10356,10425,2818,1305,355,348,909,11492,505,587,10356,10425,484,339,10367,783,11492,505,587,10356,10425,2427,980,11492],"assistant_prompt_prefix_token_ids":[10356,14,5,4,8165,430]},"voices":[{"id":"Junhao","name":"Junhao","language":"zh","gender":"male","prompt_audio_codes":[[922,507,253,140,700,228,523,612,20,194,877,682,415,244,181,195],[503,720,733,615,153,759,1023,541,744,1015,245,68,323,183,307,854],[829,958,621,750,839,865,683,955,102,557,317,968,391,539,671,425],[295,776,279,19,61,173,65,189,923,586,42,125,442,341,462,90],[556,787,992,553,436,483,618,160,504,550,402,169,607,576,72,507],[537,11,699,752,135,176,122,587,722,1016,732,103,818,680,794,605],[314,426,584,58,853,859,349,113,295,128,939,692,225,203,107,881],[568,471,263,796,587,485,874,63,918,571,191,528,308,807,979,412],[363,1018,425,985,140,7,264,833,943,111,568,241,630,759,444,164],[101,956,551,11,250,581,458,487,105,74,2,382,141,818,414,652],[650,814,47,264,24,509,691,425,518,997,802,711,960,154,400,93],[64,296,383,755,333,962,864,917,561,1022,403,329,5,461,527,18],[522,631,510,341,247,290,782,670,758,395,102,571,394,356,746,857],[522,304,672,148,205,180,900,807,665,302,47,480,638,258,518,304],[522,631,200,526,535,378,231,868,807,798,634,784,969,993,96,15],[522,631,366,561,420,58,557,372,961,190,812,571,800,757,672,767],[522,258,944,526,334,378,724,1014,759,582,812,451,547,130,116,114],[681,489,801,220,779,901,1007,1000,786,439,214,508,972,678,53,951],[129,487,7,540,588,487,627,760,717,20,174,309,567,76,1006,510],[762,580,568,606,634,603,541,33,796,43,239,708,168,974,135,422],[843,472,764,106,669,796,760,587,158,82,170,13,169,374,474,975],[643,186,140,62,748,359,433,56,102,646,470,3,887,185,782,421],[303,237,900,853,806,193,994,876,150,202,897,551,227,286,167,662],[511,662,411,60,970,669,153,316,1004,380,753,260,1006,730,309,98],[699,511,808,376,266,113,694,474,412,436,6,906,155,120,435,371],[100,19,600,915,143,807,851,899,209,174,594,929,567,104,503,267],[931,549,132,1008,530,577,729,382,983,114,807,8,213,369,41,160],[358,787,131,179,83,173,205,338,427,12,681,69,806,115,925,948],[116,445,200,935,584,320,558,720,501,187,67,428,676,682,758,799],[522,502,349,1006,791,619,449,579,879,1017,936,703,487,175,339,41],[387,860,824,652,389,624,494,37,202,758,306,805,107,794,771,227],[593,846,555,723,420,360,16,211,926,592,978,35,439,1013,282,554],[563,864,853,711,329,664,330,722,64,767,303,961,547,282,1013,180],[939,7,224,860,633,328,231,69,782,513,609,528,373,41,663,356],[559,1007,147,797,253,828,655,777,205,732,989,394,194,25,414,108],[453,558,815,434,234,626,387,631,338,907,78,999,696,705,477,978],[884,955,482,679,625,809,561,513,735,973,940,39,745,313,293,698],[627,79,920,153,672,555,569,808,257,172,9,755,59,770,167,899],[231,746,386,19,898,406,452,804,770,437,131,759,277,490,821,806],[12,347,140,818,815,1014,857,827,464,964,208,772,71,65,835,798],[774,888,332,1013,751,167,218,896,863,743,683,365,193,502,569,373],[624,397,383,716,407,701,795,23,389,737,1006,217,660,1005,477,753],[550,338,24,563,279,896,626,478,835,829,307,231,426,928,339,625],[902,198,166,453,977,490,655,169,885,41,370,814,650,959,827,337],[112,938,282,551,610,202,973,932,629,1003,443,338,329,734,626,251],[244,593,407,154,105,789,349,740,332,499,605,905,443,83,693,531],[393,433,112,157,138,614,188,52,903,477,65,433,938,219,747,69],[636,959,383,117,229,88,0,427,753,912,141,737,664,538,238,205],[78,82,377,364,41,453,648,129,589,139,588,429,358,998,624,118],[673,971,838,161,186,996,976,116,715,12,81,3,578,971,867,390],[745,777,935,956,996,712,58,248,589,952,3,706,794,10,307,422],[584,445,138,198,281,56,960,429,255,418,133,749,897,814,424,231],[358,687,1021,664,551,46,846,448,361,36,966,519,121,674,243,5],[116,687,897,952,266,107,23,214,601,558,51,484,610,554,623,233],[940,304,21,373,225,187,911,502,986,725,552,721,420,662,165,726],[522,258,569,535,250,276,852,909,334,151,446,573,873,999,157,366],[522,631,670,815,547,865,969,290,397,953,68,293,665,681,998,943],[522,258,904,341,726,573,793,431,363,279,957,896,800,6,443,549],[522,355,474,148,909,367,303,233,397,573,622,978,112,330,272,20],[830,344,609,85,742,18,871,632,465,651,269,809,807,343,153,470],[760,73,241,326,415,44,343,806,421,733,485,989,635,786,959,26],[653,632,860,748,455,143,49,233,244,388,30,318,362,584,850,533],[605,460,153,544,484,615,669,203,450,638,969,363,262,889,507,1000],[82,292,704,788,453,144,390,425,204,196,1014,538,865,910,178,264],[503,985,68,969,295,821,850,874,66,644,165,751,652,132,318,486],[92,162,180,582,603,465,959,453,202,919,316,691,506,393,792,254],[225,1004,501,957,454,159,801,90,200,847,855,967,277,76,526,255],[457,974,97,674,565,803,268,469,385,895,969,1007,862,327,122,733],[183,144,492,12,570,660,207,996,998,462,485,958,558,838,272,14],[733,633,557,117,334,41,1012,694,12,286,88,44,1007,665,185,837],[796,7,7,46,548,846,88,1008,272,541,21,179,727,693,967,950],[158,743,122,41,7,280,191,839,825,395,408,758,537,903,612,312],[64,355,107,91,836,845,900,659,1009,201,727,1019,742,90,157,424],[1002,304,21,759,803,482,422,575,397,786,466,614,611,838,1017,98],[522,631,474,179,301,272,825,208,759,649,500,933,723,480,89,622],[522,666,371,179,909,180,740,2,759,396,634,854,225,689,32,281],[522,258,576,341,686,302,1019,131,799,953,757,144,592,999,664,40],[825,933,493,628,898,210,384,364,391,890,831,212,488,776,177,774],[64,35,672,178,270,721,934,876,961,736,778,53,925,987,212,819],[64,841,107,565,448,99,1004,557,596,37,403,168,128,102,565,705],[64,841,107,220,686,251,588,733,1016,669,330,967,110,821,600,153],[522,666,144,449,243,58,384,515,438,994,400,166,838,648,226,165],[522,494,485,297,460,180,467,346,116,786,838,923,194,113,520,548],[11,188,931,627,505,410,46,368,484,1008,545,361,736,381,763,641],[129,484,881,641,227,587,19,977,825,759,996,13,531,690,944,551],[882,431,301,491,493,461,135,153,325,144,221,937,143,57,371,661],[392,974,859,978,58,500,153,492,133,368,990,333,270,662,709,641],[474,904,1012,549,320,216,101,117,199,740,685,75,296,996,874,48],[1020,210,660,614,621,267,305,261,283,748,24,884,172,32,348,675],[107,828,120,479,1021,587,244,654,462,821,1023,166,44,604,373,899],[656,779,299,809,373,916,465,582,1020,115,1009,3,788,44,840,879],[652,960,562,55,627,764,660,97,240,958,526,956,889,151,137,789],[337,919,190,813,186,474,441,906,408,741,143,564,362,366,332,989],[118,107,185,67,554,146,31,349,548,237,503,429,820,103,167,454],[67,251,845,321,184,752,540,678,768,468,646,81,256,817,986,342],[494,349,524,629,31,505,222,417,300,433,827,103,802,589,731,71],[136,756,28,584,214,388,946,245,175,120,839,689,702,313,158,771],[160,902,270,381,978,152,465,694,257,544,649,142,1019,442,409,211]]},{"id":"Zhiming","name":"Zhiming","language":"zh","gender":"male","prompt_audio_codes":[[482,13,945,1023,973,579,707,64,923,49,47,356,62,631,685,365],[482,375,670,655,961,970,72,713,115,716,777,479,618,430,983,743],[246,974,873,652,491,153,431,227,624,617,453,597,585,550,148,633],[461,230,149,86,921,536,933,500,808,833,54,297,800,226,524,53],[252,148,60,231,94,905,179,160,508,500,219,85,361,852,359,300],[957,566,532,385,897,759,966,153,245,390,216,515,221,1011,502,653],[1012,247,739,130,1020,366,561,686,200,808,79,232,864,630,1009,665],[692,183,331,901,748,78,347,360,305,957,101,395,504,763,819,420],[238,722,543,194,935,343,414,989,88,551,515,912,84,1003,63,998],[684,669,927,877,320,835,195,269,723,896,919,962,12,412,951,821],[1016,629,7,826,451,671,853,770,414,481,1009,763,735,537,286,373],[578,153,511,235,48,23,1017,906,299,56,1003,517,786,994,54,861],[712,182,873,809,633,699,849,276,819,478,609,719,121,464,913,298],[107,410,477,171,922,108,340,840,454,769,605,663,485,698,350,257],[630,747,753,434,356,266,835,1000,952,744,525,278,219,464,578,702],[662,88,96,513,657,330,741,401,253,56,1018,28,758,636,505,433],[444,629,744,931,697,38,753,938,373,849,376,539,194,62,596,398],[889,963,255,536,765,26,882,802,92,157,681,24,391,901,935,66],[279,356,230,375,561,949,349,326,168,743,1008,15,962,208,199,854],[991,765,344,808,687,843,60,570,722,150,997,370,435,44,386,474],[856,404,600,318,254,467,297,65,681,497,224,103,385,846,851,443],[492,260,400,505,400,326,428,880,534,265,509,606,468,844,581,628],[545,541,875,683,821,678,1015,572,105,781,459,1015,374,100,400,671],[836,687,827,798,176,638,395,481,206,85,498,703,370,65,343,263],[404,757,19,868,607,207,166,1002,920,317,712,200,218,209,522,262],[358,853,19,483,194,936,677,596,719,316,934,327,881,965,28,925],[230,35,648,52,293,759,624,640,482,828,118,868,917,43,335,983],[657,496,759,707,88,798,485,279,906,578,122,88,489,153,361,752],[630,255,18,577,131,676,701,18,359,483,10,149,682,506,505,670],[149,596,722,393,734,674,393,699,44,389,197,964,792,510,706,555],[532,918,860,921,208,60,42,142,980,607,286,262,546,802,738,1006],[98,720,137,110,617,199,619,814,982,945,423,368,972,681,865,608],[98,826,863,372,949,686,347,255,566,321,593,251,229,402,978,971],[67,94,400,438,267,352,935,627,944,612,606,419,672,356,869,868],[1019,204,748,558,843,26,985,137,313,348,996,90,408,527,912,305],[815,492,916,483,310,521,153,791,83,839,970,966,256,429,706,321],[314,942,630,42,243,213,939,415,108,445,36,451,381,158,554,785],[904,767,182,351,319,775,466,877,420,532,205,869,329,281,559,342],[576,677,289,226,619,781,7,500,57,521,284,714,664,1012,924,188],[56,677,429,541,799,626,393,180,908,973,722,500,251,979,1004,790],[729,538,407,214,172,919,392,717,598,569,103,718,77,894,494,808],[164,608,808,745,391,759,326,307,993,835,622,228,923,931,7,838],[542,73,105,871,18,897,943,852,915,837,463,787,854,829,700,221],[816,649,471,871,358,826,342,604,645,569,700,149,654,535,28,291],[472,877,151,372,818,698,1020,780,304,134,258,716,951,303,579,474],[483,32,20,894,776,401,499,80,491,89,860,231,62,577,947,318],[681,809,997,106,597,19,570,919,917,918,89,439,289,253,993,933],[586,746,330,367,914,75,310,145,765,109,835,812,1000,939,42,326],[89,999,232,864,148,875,126,399,178,748,871,977,185,820,351,512],[722,31,87,992,925,864,510,392,531,82,831,486,551,655,597,27],[23,492,831,92,484,917,179,111,301,1009,721,461,155,667,853,17],[341,138,981,633,661,228,470,281,530,384,363,651,918,617,628,809],[793,826,911,882,925,252,494,387,663,78,675,305,50,385,470,144],[182,12,64,339,854,854,88,154,787,468,371,619,257,674,770,182],[33,171,1010,916,390,46,839,202,399,522,104,445,355,49,260,777],[317,928,394,716,52,683,1003,712,541,212,899,927,150,462,989,188],[847,60,493,675,395,790,786,771,34,560,511,1021,644,89,123,584],[574,404,896,212,547,695,512,90,528,402,994,821,439,133,196,704],[663,183,586,8,24,740,570,470,117,928,820,702,192,793,380,406],[356,230,767,433,361,214,242,471,56,420,969,853,1018,433,443,945],[883,631,192,533,83,343,57,208,328,945,160,788,382,566,11,21],[591,700,457,660,777,885,618,210,690,825,770,1021,726,248,206,223],[670,841,725,230,786,823,720,413,20,359,293,576,499,678,175,178],[302,743,446,261,836,885,613,117,352,89,521,194,870,670,576,950],[53,304,670,148,909,150,124,816,171,469,1019,533,629,673,272,682],[302,743,769,341,250,408,888,1020,758,135,3,168,537,549,570,528],[302,743,725,261,412,81,303,968,774,13,904,850,391,113,773,47],[339,841,944,524,909,320,303,717,799,44,140,532,514,165,109,223],[302,743,446,35,250,81,661,295,732,13,574,580,629,524,522,625],[836,103,848,222,686,709,507,144,645,611,64,892,649,457,1015,214],[742,627,749,467,715,23,893,73,954,103,706,304,171,52,237,439],[248,572,576,95,114,187,398,400,811,785,323,486,438,863,859,501],[688,793,446,97,467,190,135,9,42,631,219,763,60,899,502,748],[619,171,175,955,1013,363,38,68,791,340,680,600,1007,86,140,883],[183,382,184,1012,700,1007,795,1017,690,745,8,692,906,218,988,713],[347,461,455,51,368,371,687,762,66,295,847,1009,38,754,423,813],[363,308,910,157,566,416,432,940,133,460,567,119,980,323,296,652],[818,216,51,26,168,897,835,107,863,195,968,468,742,911,987,354],[586,539,142,550,304,502,111,960,146,107,695,398,126,195,793,547],[183,851,2,692,184,771,580,518,238,120,692,681,643,114,543,93],[405,517,588,232,825,923,1000,390,361,589,979,912,46,1015,485,301],[171,956,967,669,879,279,805,97,95,515,41,219,234,930,163,647],[316,776,952,336,825,193,439,905,53,399,1010,661,163,549,303,12],[391,655,923,774,1019,777,497,897,808,838,1007,117,166,151,315,420],[220,300,674,252,287,353,80,296,303,690,126,196,23,922,877,429],[274,9,138,736,456,499,894,641,912,625,151,100,566,131,754,207],[834,685,924,264,37,235,119,194,105,341,277,685,404,621,954,817],[785,675,405,801,40,389,813,1007,868,183,911,633,366,647,552,464],[244,993,794,332,379,932,976,317,512,225,222,535,725,428,591,434],[481,16,482,999,939,577,786,470,566,1014,147,434,141,131,916,803],[185,216,701,527,518,843,638,316,542,647,457,869,289,841,451,891],[947,700,735,452,431,936,370,841,1008,913,735,404,819,522,477,1016],[19,445,593,967,383,707,888,158,813,293,576,96,99,707,880,475],[339,127,569,907,1002,439,1013,431,351,447,973,1002,143,347,274,164],[482,194,670,302,909,406,303,777,170,488,85,284,857,510,443,973],[482,194,670,241,909,406,417,404,407,334,501,533,112,446,1012,49],[482,194,670,241,909,406,124,404,407,334,501,533,112,446,1012,467],[482,194,670,241,909,406,124,404,407,334,501,533,112,446,1012,467]]},{"id":"Weiguo","name":"Weiguo","language":"zh","gender":"male","prompt_audio_codes":[[1014,665,709,269,802,923,54,640,213,704,788,840,831,99,578,284],[242,976,565,549,201,319,78,286,84,154,509,179,371,538,573,40],[868,472,433,73,997,684,368,164,75,677,33,661,888,597,902,272],[750,756,477,770,552,183,203,798,966,326,825,377,851,861,405,474],[916,508,89,893,63,218,244,490,190,904,1020,941,760,117,943,1014],[684,814,491,285,297,145,372,642,836,38,437,33,1017,873,460,664],[916,583,49,152,349,365,58,692,523,275,914,877,316,981,9,635],[703,905,697,671,330,46,77,65,623,643,1020,60,332,496,80,621],[89,968,809,624,38,3,541,824,278,375,183,732,1013,543,966,456],[404,344,61,3,804,312,882,5,115,215,771,87,133,683,509,1018],[683,332,89,223,765,474,772,205,307,376,720,380,161,475,929,27],[681,105,297,761,932,75,804,724,178,109,825,422,926,147,866,807],[162,853,948,658,894,122,458,619,412,611,180,131,31,714,96,372],[863,497,744,371,985,837,181,937,719,556,563,172,485,908,1023,1005],[947,494,606,811,372,425,618,22,86,889,910,101,960,206,568,763],[74,794,89,290,607,38,325,835,114,736,136,328,821,61,702,916],[223,491,312,934,673,35,892,106,319,149,573,699,442,315,904,144],[690,882,24,102,405,888,632,590,500,234,648,336,399,860,738,828],[554,560,705,679,865,498,880,211,777,1011,542,900,669,121,199,779],[554,265,535,762,623,969,662,699,995,127,794,116,762,222,942,473],[865,339,172,551,194,814,376,942,1008,398,307,951,771,789,251,887],[684,638,941,227,195,851,1006,72,724,752,509,581,296,232,212,150],[628,579,951,927,656,844,836,115,1009,108,786,592,427,806,739,478],[24,931,833,942,1006,1013,989,520,137,79,376,759,421,45,106,706],[947,645,185,318,464,722,46,863,340,981,798,515,686,384,609,951],[595,15,270,185,864,665,1022,477,78,992,780,28,966,392,51,846],[796,763,77,475,176,391,317,994,5,790,579,859,421,990,404,866],[947,20,366,577,70,619,674,544,861,460,70,542,933,514,175,158],[602,841,670,555,334,721,588,117,588,574,914,20,745,149,881,738],[387,509,160,44,32,1004,915,944,936,603,758,122,327,374,746,821],[648,948,482,424,43,1007,957,902,128,492,712,219,542,991,350,755],[518,1023,30,250,199,943,368,133,663,16,722,724,828,215,307,41],[695,439,546,149,288,772,90,534,889,431,291,242,858,643,114,253],[771,556,588,187,366,521,925,37,894,554,253,725,828,222,203,620],[750,895,705,10,735,141,930,712,282,501,19,289,97,159,378,247],[133,369,710,1012,661,342,91,620,468,564,418,805,740,625,884,540],[405,331,947,805,790,927,811,851,182,745,641,521,587,243,241,171],[721,923,857,777,539,867,518,461,971,546,261,161,746,842,178,182],[617,176,604,751,774,311,323,814,994,948,4,962,678,153,979,47],[247,389,352,935,880,850,456,833,750,1016,583,788,554,1022,286,367],[211,928,24,303,366,495,519,966,76,952,809,500,113,284,554,201],[670,763,516,63,610,320,528,1021,295,309,36,639,771,0,126,754],[292,199,611,709,73,680,111,930,156,657,343,218,546,863,743,888],[264,241,553,385,557,853,503,931,751,974,118,391,653,122,401,50],[192,660,42,943,543,832,50,509,321,476,462,314,589,766,659,75],[602,494,168,14,96,9,976,567,732,636,627,522,336,8,166,844],[602,841,366,241,909,721,852,1014,820,403,100,977,857,372,714,298],[825,841,749,733,909,117,476,290,295,319,627,875,447,716,34,939],[825,841,366,733,205,721,1004,816,820,613,909,616,15,816,252,504],[825,494,366,302,270,764,524,346,820,252,485,0,593,210,402,706],[825,494,366,139,270,633,740,346,781,571,586,778,758,263,198,483],[825,841,168,302,993,764,524,876,243,286,99,978,914,186,477,779],[825,841,366,815,909,721,404,372,820,13,860,738,383,736,339,361],[825,841,366,815,334,721,422,1014,961,613,731,247,799,352,751,758],[825,645,448,535,909,764,422,346,374,675,102,99,0,594,45,58],[100,712,981,223,403,766,97,584,669,121,448,371,435,34,253,533],[528,1009,1021,654,430,86,929,213,534,802,1008,847,121,406,495,613],[942,422,988,688,482,923,335,445,623,64,536,368,765,843,563,868],[586,295,792,303,300,731,1000,161,216,67,275,323,303,769,1013,439],[52,692,521,679,839,860,350,572,22,158,378,1022,242,1,432,188],[658,222,790,105,840,119,461,523,136,117,127,632,571,166,752,330],[44,181,786,551,769,581,903,765,795,213,281,427,24,203,1019,676],[815,976,1005,473,1007,463,397,200,945,294,609,6,607,607,722,905],[854,991,367,707,513,690,863,319,841,669,449,557,682,705,153,521],[367,2,179,689,356,254,350,35,114,934,127,608,619,494,16,146],[808,117,595,392,584,783,572,458,833,668,424,754,895,676,441,452],[655,816,376,811,763,131,2,821,737,366,868,206,17,370,82,339],[1015,434,659,129,896,910,469,582,980,727,904,377,614,145,432,562],[664,617,859,452,423,53,651,700,102,941,967,585,119,483,227,571],[721,964,888,229,950,677,190,880,200,508,897,121,543,354,435,65],[723,304,892,23,353,409,692,870,1005,765,172,523,808,251,709,827],[303,553,337,470,103,1002,982,96,988,622,212,300,436,1001,1018,372],[402,795,935,843,383,371,263,696,167,55,34,466,613,868,99,18],[128,481,532,826,462,677,837,830,334,746,375,311,264,152,972,639],[329,621,582,897,742,951,495,225,867,315,709,776,120,852,464,490],[353,972,142,949,11,222,666,853,469,975,640,914,190,59,1015,881],[684,120,919,144,255,463,861,515,340,515,448,355,642,847,558,847],[265,105,846,552,346,842,137,814,666,1008,586,691,255,704,898,484],[490,434,397,355,9,808,887,993,598,679,510,868,165,779,748,991],[526,568,362,97,291,977,12,655,352,98,216,663,1016,288,677,573],[1017,45,863,102,795,1009,628,169,1002,163,429,814,366,270,64,727],[743,786,162,438,954,830,424,183,771,249,851,119,342,130,956,726],[570,341,767,375,720,665,194,831,992,637,950,524,416,643,981,566],[114,168,525,955,336,398,238,432,863,512,850,562,779,200,244,658],[262,478,151,943,1012,134,1011,1017,338,49,631,71,890,943,599,497],[796,176,333,891,689,736,704,632,865,343,340,320,418,878,543,72],[591,445,132,373,243,386,929,55,344,991,220,506,528,434,618,642],[365,920,790,926,789,722,750,614,930,421,674,197,352,795,759,522],[365,841,39,524,455,60,652,785,860,232,108,571,593,665,389,649],[825,666,366,179,96,721,1013,807,374,334,831,454,857,535,533,868],[126,975,907,204,132,111,617,741,553,141,389,903,973,268,427,1012],[601,892,91,652,438,15,642,161,437,661,89,194,374,529,820,75],[894,939,61,652,490,488,274,919,460,104,206,671,99,418,206,892],[6,959,344,441,45,719,201,928,359,870,334,331,815,673,97,24],[935,342,505,913,321,708,120,910,469,562,90,432,283,964,871,920],[159,984,299,291,507,164,751,158,0,19,593,503,816,997,332,504],[159,436,408,720,896,249,930,191,418,472,877,450,606,386,629,417],[588,314,663,864,877,449,165,443,91,281,934,468,280,356,517,272],[185,28,919,978,726,522,282,464,295,880,26,261,960,4,252,102],[734,60,729,982,9,200,704,439,577,465,887,369,269,641,927,550],[166,854,637,353,149,129,252,314,448,218,76,811,965,543,684,518],[887,928,42,518,309,838,797,557,772,40,645,385,624,772,857,499],[207,104,514,203,97,640,570,206,319,491,987,92,1021,13,267,281],[591,191,371,667,604,531,237,925,507,64,146,627,236,36,666,960],[831,707,973,448,760,598,983,805,306,159,307,418,981,989,453,50],[816,63,564,319,63,252,736,954,454,1007,755,780,56,563,94,158],[479,255,190,746,201,363,862,717,309,359,19,994,32,881,952,370],[796,666,716,973,395,612,502,991,420,470,758,245,400,846,846,210],[602,631,672,526,547,180,384,404,686,953,500,1003,723,681,1012,730],[602,258,749,815,96,573,417,2,407,705,923,849,542,688,0,872],[602,494,366,815,950,573,793,2,799,396,957,828,154,688,698,168],[825,494,474,341,686,764,303,626,397,697,957,687,533,688,312,192],[421,666,107,420,53,506,553,314,854,982,1,930,783,465,938,911],[825,666,474,526,950,721,793,404,799,469,1019,895,738,54,849,697],[292,951,19,935,505,761,813,983,369,151,151,555,605,851,1001,126],[546,146,280,409,292,119,845,325,88,330,588,702,140,584,437,14],[671,991,522,317,699,721,707,108,967,656,818,947,718,93,210,212],[383,373,47,975,696,190,113,381,558,672,462,932,511,730,417,554],[89,44,459,661,930,31,427,10,716,100,180,203,29,406,227,65],[577,655,560,120,618,671,664,258,203,4,913,789,785,641,511,996],[916,233,460,326,240,874,826,225,966,925,511,970,556,204,287,226],[158,653,801,60,757,190,997,837,852,916,496,774,992,30,538,276],[1000,906,246,760,843,452,200,194,380,113,38,941,559,65,319,185],[925,157,975,235,512,381,250,387,181,217,728,696,315,634,263,112],[233,13,90,230,533,119,310,431,346,944,255,145,994,291,437,966],[380,737,423,720,14,332,798,596,736,509,423,491,43,6,411,832],[700,192,713,210,192,23,479,537,842,833,390,176,597,475,726,889],[856,143,985,959,702,431,424,151,362,930,972,184,580,171,912,279],[47,814,371,182,495,746,812,542,88,297,446,120,786,51,747,510],[18,595,953,958,769,63,278,1003,400,848,142,91,875,913,45,84],[903,120,12,121,956,354,812,784,946,847,841,496,546,958,1002,665],[916,275,270,743,854,679,823,279,1007,120,70,960,186,504,82,682],[273,14,699,125,733,654,686,394,675,765,456,718,621,327,711,18],[713,45,796,1007,523,990,68,301,614,175,81,426,812,756,539,737],[486,434,284,225,173,143,671,911,524,856,714,451,1014,761,202,569],[24,775,720,408,370,159,583,939,827,94,592,165,538,644,115,346],[803,978,834,647,488,318,933,181,593,539,8,373,72,961,387,658],[288,812,448,890,853,74,469,287,929,373,226,694,310,792,502,677],[602,631,446,968,513,920,394,442,202,193,933,607,684,550,727,676],[602,258,21,241,950,721,740,2,407,161,501,687,870,312,374,467]]},{"id":"Yuewen","name":"Yuewen","language":"zh","gender":"female","prompt_audio_codes":[[482,13,588,241,841,721,809,341,992,49,186,849,542,689,934,230],[482,743,446,655,911,1021,72,877,543,121,332,529,805,478,85,516],[349,402,18,127,578,466,364,395,961,737,865,23,1015,839,118,645],[424,632,305,117,424,183,343,706,446,978,82,435,210,390,35,975],[847,552,737,19,299,350,528,877,753,342,428,899,344,71,660,383],[183,804,138,488,55,581,81,761,562,901,427,989,904,770,57,1012],[942,182,191,715,181,463,211,513,1001,324,183,336,866,250,662,43],[153,895,378,902,369,558,996,826,613,309,203,261,953,901,446,362],[242,773,130,626,1017,742,746,119,923,377,992,990,239,195,111,306],[310,622,631,294,842,474,701,326,676,135,78,847,211,376,691,993],[223,139,508,110,518,479,783,840,490,611,33,220,987,801,183,943],[808,845,389,582,0,43,686,654,481,947,480,310,902,2,225,75],[699,281,937,8,19,794,695,355,962,914,845,62,389,167,431,524],[845,718,867,175,529,354,805,650,28,134,695,775,896,927,425,763],[357,719,561,960,402,606,313,111,439,565,19,670,691,763,102,688],[391,218,325,914,523,751,435,384,828,842,66,509,764,983,199,385],[919,891,357,542,708,883,362,896,729,722,358,362,662,917,85,566],[647,318,791,690,23,955,33,70,236,95,63,236,821,935,50,1009],[623,99,435,555,775,215,331,281,165,924,425,791,913,931,997,445],[613,336,247,746,300,36,915,967,551,603,553,1019,670,427,561,86],[556,921,821,278,441,659,812,706,821,523,392,244,291,925,213,513],[285,505,195,93,906,54,720,685,67,230,660,899,530,530,77,515],[797,615,19,781,612,884,997,492,175,226,317,90,760,338,1022,892],[991,214,97,15,866,19,375,419,266,620,965,183,749,428,435,98],[654,58,907,725,16,734,829,591,279,148,122,274,363,714,640,837],[280,348,225,80,617,903,489,502,754,430,271,781,809,880,192,754],[877,493,366,343,811,171,915,953,551,491,338,836,809,349,1023,760],[471,358,231,152,630,885,754,280,250,719,80,366,599,519,745,748],[69,676,435,188,316,87,716,207,907,760,207,612,212,267,509,542],[230,338,521,891,58,34,472,197,418,731,305,856,917,318,663,923],[711,199,780,666,571,464,236,112,556,700,322,377,620,318,622,446],[160,806,261,1009,690,955,698,702,841,556,754,213,405,522,807,962],[230,933,739,952,910,928,567,32,957,936,667,868,541,780,542,115],[974,52,184,750,890,395,325,885,423,93,907,205,263,334,305,529],[460,118,450,528,638,350,315,231,511,991,48,56,856,781,145,123],[865,754,179,303,289,853,828,425,361,706,40,131,419,455,680,840],[627,737,1006,234,529,780,531,91,573,916,647,18,324,773,955,335],[732,982,737,1009,646,859,669,760,437,429,491,76,82,655,774,740],[166,442,814,947,305,43,50,82,787,562,475,998,551,86,16,892],[944,784,139,510,669,825,234,22,915,211,392,336,998,234,764,555],[80,526,405,233,54,620,835,765,464,130,287,666,188,91,709,994],[280,879,499,222,908,407,418,529,546,458,729,535,726,333,49,831],[210,64,680,468,542,612,518,543,789,260,836,630,766,480,328,576],[183,638,945,715,364,387,997,661,1005,175,195,460,14,354,922,207],[490,126,140,91,204,4,623,737,813,389,659,335,122,809,576,620],[587,488,508,313,764,520,581,119,401,728,319,736,286,42,807,164],[73,784,955,84,201,971,375,421,419,248,575,128,248,137,481,659],[280,104,574,531,519,528,732,725,809,267,813,78,206,318,123,537],[638,606,535,212,170,693,235,918,275,759,306,430,447,97,243,66],[916,63,434,886,126,628,647,513,762,934,130,839,1018,949,636,68],[655,939,198,995,580,672,138,755,603,290,968,955,518,76,264,14],[209,347,651,616,739,882,346,588,84,463,848,767,818,573,34,713],[312,999,803,146,520,882,253,791,323,615,943,98,555,750,535,366],[546,357,460,542,760,275,489,386,147,448,691,899,202,1003,468,665],[423,459,19,788,948,912,526,693,219,961,124,741,197,939,103,194],[913,33,820,638,525,527,387,642,27,211,779,509,450,221,906,913],[464,141,1014,5,61,723,1002,293,314,534,1023,868,236,792,275,447],[405,545,737,820,120,399,320,458,114,925,367,424,26,399,790,341],[255,674,577,443,926,705,430,349,194,136,844,274,730,162,157,160],[323,31,503,53,985,982,12,312,256,481,228,319,808,368,193,85],[273,828,592,183,80,374,560,286,507,461,170,333,579,902,16,819],[581,395,198,213,280,441,99,752,951,721,289,531,1008,692,363,751],[59,604,375,116,165,218,302,63,159,132,783,81,688,477,691,265],[156,687,827,678,936,907,62,880,179,12,649,162,515,297,136,872],[626,1002,485,933,672,311,95,19,358,834,266,992,120,193,970,100],[876,1002,747,890,47,955,336,917,621,885,929,992,698,339,14,977],[911,920,643,585,89,551,234,628,764,526,631,944,100,492,465,628],[953,968,160,35,977,187,165,208,760,532,728,742,260,312,157,836],[145,831,455,901,535,965,180,35,221,104,937,471,592,642,191,619],[217,45,293,409,444,789,395,158,176,184,660,736,133,520,855,416],[526,944,431,36,708,104,885,104,912,69,381,673,73,747,427,98],[498,52,887,261,602,604,967,51,1019,976,805,882,731,594,973,619],[1004,351,614,375,7,20,247,247,958,552,111,648,975,630,931,752],[779,1010,727,907,291,129,639,626,977,473,890,751,358,568,325,198],[166,78,137,561,540,201,909,227,59,282,209,769,845,509,442,573],[498,400,32,17,583,950,401,970,451,279,208,987,677,559,860,256],[751,526,1006,913,351,511,830,457,335,781,357,557,389,75,179,34],[244,465,362,520,214,806,407,511,73,961,316,268,369,288,371,999],[751,444,345,976,591,449,927,921,873,988,575,732,681,771,877,331],[357,154,46,147,1006,256,234,930,186,584,553,617,636,384,878,978],[546,967,482,212,926,396,758,1004,830,847,955,704,974,721,796,353],[464,348,831,358,78,108,25,530,833,185,40,561,248,405,73,111],[166,339,513,372,424,604,97,470,276,759,309,240,79,194,343,400],[957,405,839,888,232,812,282,953,359,810,874,437,694,675,473,125],[819,314,761,818,1022,17,382,16,1016,457,868,229,541,317,50,957],[256,959,650,215,640,233,730,961,255,246,996,598,406,700,980,876],[60,824,299,318,257,49,940,863,631,232,259,573,465,223,112,501],[834,382,141,320,365,793,848,672,106,698,208,192,595,702,578,272],[546,359,809,663,377,553,474,1007,445,652,766,239,674,594,122,379],[294,101,109,96,760,360,171,999,752,390,134,319,496,916,47,840],[390,365,488,996,443,245,109,622,134,402,499,231,859,356,814,40],[120,27,192,108,544,676,857,497,508,97,164,671,274,99,128,430],[147,478,965,87,658,527,607,763,70,510,420,279,920,955,63,987],[721,10,543,961,712,578,172,249,403,862,638,665,14,95,1,564],[933,207,303,371,594,831,782,386,94,952,143,598,457,552,976,541],[224,509,299,631,693,159,904,959,143,439,61,768,684,491,682,634],[792,644,500,956,781,208,280,1016,599,977,172,6,893,991,280,854],[302,645,446,664,44,451,572,412,689,108,191,978,294,650,291,426],[53,763,576,585,638,398,472,311,740,834,1008,565,624,469,508,557],[482,419,670,241,909,951,220,626,397,834,68,677,4,347,660,501],[482,194,670,241,909,406,417,404,407,334,923,533,112,570,1012,49],[482,194,670,241,909,406,124,404,407,334,923,533,112,689,1012,467]]},{"id":"Lingyu","name":"Lingyu","language":"zh","gender":"female","prompt_audio_codes":[[723,673,892,535,666,408,588,903,853,41,657,360,781,732,699,531],[902,959,671,927,444,434,164,237,43,167,657,986,160,838,712,626],[334,413,489,738,95,617,503,681,576,982,84,961,915,241,217,829],[1011,294,535,709,710,426,839,967,471,475,643,371,658,606,1,982],[329,607,876,542,627,581,892,457,209,570,594,798,124,547,481,744],[495,924,876,702,418,461,713,117,83,642,939,301,529,644,413,238],[402,419,219,760,868,592,458,265,483,22,659,864,44,1021,842,870],[947,258,39,35,726,439,268,345,1015,573,387,687,645,810,94,584],[120,806,938,806,863,812,896,435,25,213,540,269,33,371,710,275],[225,96,588,209,605,736,272,201,187,187,979,770,318,404,980,462],[512,864,37,688,839,608,101,344,210,867,188,402,485,290,93,984],[437,881,14,270,298,462,850,700,135,424,244,782,220,910,156,824],[20,473,1021,653,240,931,658,559,433,87,914,582,215,378,986,41],[323,371,907,780,379,793,94,814,275,248,868,528,535,670,216,545],[209,576,540,249,101,515,413,69,669,470,919,572,128,248,584,69],[45,629,654,506,1005,514,628,952,566,434,681,981,755,658,710,831],[863,820,567,529,222,574,259,688,724,880,831,538,350,152,91,684],[875,887,152,343,658,455,487,306,373,11,1006,293,215,896,549,131],[883,886,220,226,708,428,968,964,134,88,598,16,693,352,527,4],[947,355,133,502,971,552,85,952,446,328,162,886,913,226,656,270],[947,666,963,35,226,188,472,276,959,785,945,683,15,481,588,239],[947,494,268,338,355,114,585,949,569,190,905,687,1017,548,399,165],[233,763,366,775,270,721,937,816,42,571,287,766,963,312,664,989],[947,258,569,220,460,302,231,816,816,334,953,984,295,1023,1014,323],[602,841,725,815,761,908,220,758,665,321,1005,144,650,751,868,350],[602,258,39,341,803,573,417,431,407,334,923,650,826,439,384,540],[602,763,268,775,87,458,231,876,686,711,698,506,332,157,74,773],[199,700,107,302,803,990,231,208,813,926,40,717,1017,512,566,230],[365,900,485,524,205,524,384,973,835,785,568,697,50,657,242,203],[365,588,827,775,903,692,433,12,155,762,370,753,653,291,692,447],[365,588,999,997,313,432,433,549,864,603,90,516,759,48,120,329],[365,900,107,524,313,428,553,520,810,711,605,8,234,585,494,807],[365,724,77,49,313,392,90,403,461,82,569,966,287,420,261,535],[199,258,500,526,909,879,852,1014,758,441,418,165,123,408,874,151],[602,258,725,241,803,573,1013,1014,351,469,88,1003,826,854,655,570],[233,666,366,241,909,573,467,431,363,786,1019,0,962,524,363,151],[602,258,725,148,803,255,303,816,799,649,1005,168,533,570,384,49],[414,490,79,986,961,256,443,213,285,191,325,140,690,701,185,300],[527,3,964,371,738,949,758,999,93,683,1012,975,367,315,94,926],[307,924,826,516,637,791,907,520,295,102,886,24,861,13,289,868],[944,405,913,936,144,32,285,765,923,62,523,139,153,42,800,795],[631,679,878,684,414,982,782,794,721,449,79,755,995,277,689,572],[695,758,466,572,825,858,518,102,768,859,764,840,424,572,249,719],[966,189,179,174,745,436,578,1015,937,860,84,582,686,18,440,487],[485,922,400,954,342,67,564,999,337,168,374,367,436,334,948,913],[439,582,939,988,609,444,165,784,465,118,871,557,650,801,581,454],[991,905,600,335,524,813,590,679,492,276,992,276,753,910,440,593],[745,258,696,90,716,198,715,547,643,300,836,219,971,180,71,318],[947,631,944,241,250,971,576,994,496,713,102,687,505,669,1015,744],[233,841,39,449,950,406,124,431,103,334,953,695,244,949,714,891],[825,841,827,178,487,573,362,698,363,334,82,657,498,414,115,283],[825,258,39,524,803,721,303,2,496,623,79,273,509,751,595,509],[825,494,39,178,96,721,220,372,759,49,918,20,437,888,556,449],[602,258,39,148,803,573,825,1014,407,923,310,273,533,785,613,2],[602,258,944,524,334,908,220,131,171,334,217,1003,542,751,882,323],[53,258,725,341,803,721,124,2,478,649,923,168,112,689,368,91],[53,258,725,241,803,573,124,816,171,334,634,533,393,570,1012,49],[53,258,725,341,803,406,303,2,171,649,923,168,838,570,889,91],[53,258,725,341,803,255,220,2,171,396,923,533,838,689,1012,467],[53,666,945,815,282,408,569,407,496,636,914,415,402,25,655,101],[53,494,366,815,761,255,124,638,338,201,598,828,638,510,658,571],[53,494,672,241,282,721,696,404,1015,334,634,650,994,559,1012,371],[954,768,111,19,384,1012,411,997,190,367,80,773,57,816,589,910],[249,131,73,724,62,393,604,605,225,266,175,827,519,239,143,560],[836,665,116,75,694,678,642,632,604,18,395,831,30,1019,25,655],[709,412,609,392,310,925,714,106,6,31,904,133,31,225,649,238],[180,598,578,895,529,632,338,145,143,614,57,346,552,670,994,1009],[113,817,139,961,1005,419,952,1002,890,168,902,620,729,124,642,1011],[297,678,934,123,845,154,62,867,289,924,367,761,392,925,502,558],[948,961,712,840,94,516,532,1007,223,309,667,319,448,229,958,2],[1011,522,750,225,228,753,275,828,472,151,785,209,2,404,745,802],[127,129,383,522,982,361,354,388,137,764,267,707,108,355,323,199],[1005,916,20,383,899,416,614,980,93,880,58,524,500,39,902,319],[542,207,626,73,598,413,631,426,783,452,148,161,757,583,855,293],[77,407,233,736,252,615,115,1009,263,200,576,496,342,288,457,124],[77,816,268,234,322,577,9,823,664,268,617,585,464,349,679,760],[850,799,133,385,752,259,313,876,237,513,58,279,604,423,11,953],[777,511,186,106,947,813,965,462,626,969,200,142,545,604,203,834],[432,81,586,174,880,955,388,576,45,220,461,40,176,506,701,445],[997,367,524,760,311,490,97,723,116,719,515,561,432,947,434,860],[1002,841,725,302,448,320,79,877,419,298,416,959,195,420,229,41],[825,724,122,449,898,150,231,574,141,981,914,909,888,248,789,902],[825,841,545,524,835,378,369,406,351,599,276,328,533,446,544,324],[825,841,749,341,96,554,872,968,934,623,290,984,242,949,468,343],[825,841,21,341,334,733,476,271,923,370,731,763,244,229,489,879],[825,258,21,341,950,573,476,768,407,469,240,687,392,407,889,123],[602,841,500,341,909,1009,937,85,820,396,310,678,493,688,201,863],[602,494,474,148,803,573,825,1014,397,334,634,168,870,681,596,561],[602,494,474,148,909,255,524,816,478,334,1005,854,533,85,363,715],[53,258,39,815,909,573,303,404,407,675,1019,717,633,570,698,348],[53,666,725,241,950,406,740,431,397,334,501,580,870,689,272,49],[53,258,725,341,803,255,303,404,407,649,923,168,629,570,450,49],[53,258,725,815,803,255,417,404,171,649,923,168,629,570,889,1009],[53,258,725,815,950,255,417,626,171,573,982,533,112,681,889,668],[53,258,749,815,803,255,417,2,171,396,923,896,225,570,368,744],[339,666,448,815,803,721,303,404,407,488,923,273,826,570,743,47],[602,763,474,131,909,150,885,290,397,953,923,168,838,385,32,528],[825,700,716,657,96,896,231,516,96,319,330,529,88,344,423,110],[670,763,904,700,909,150,793,768,42,623,634,293,206,673,889,996],[670,763,107,283,803,551,533,208,813,649,40,962,477,411,854,635],[670,763,474,80,250,228,303,404,483,523,917,382,112,811,435,950],[642,355,944,524,96,150,384,175,799,573,781,647,972,340,489,874],[642,631,366,526,686,722,125,407,407,49,109,264,807,746,110,1016],[602,666,474,302,909,255,336,404,397,654,452,772,149,631,832,49],[53,258,672,815,803,255,417,2,171,396,634,168,838,681,368,47],[465,666,446,241,588,302,220,768,816,675,401,227,533,785,363,369],[137,657,645,527,433,878,516,192,751,921,853,415,778,514,733,849],[649,1003,676,669,54,782,296,188,921,454,667,620,556,198,810,997],[168,965,499,966,770,774,95,752,978,180,97,971,161,501,648,382],[338,348,212,69,120,824,496,443,804,935,13,243,640,186,561,691],[550,289,817,38,704,877,211,327,22,1023,71,696,6,307,338,1003],[335,169,36,723,537,5,751,185,548,795,450,185,788,720,632,804],[57,695,374,336,923,526,919,717,717,264,98,780,593,27,774,169],[960,852,102,1014,376,284,238,681,308,411,581,548,1018,598,214,145],[77,337,992,188,432,821,54,117,354,864,63,982,146,171,364,657],[259,339,151,840,704,674,460,703,188,850,573,948,9,427,980,717],[801,29,611,949,710,677,203,246,413,773,702,961,778,670,765,723],[842,590,377,255,44,483,511,739,294,100,86,740,627,515,268,604],[362,847,50,267,907,792,542,275,308,513,907,932,136,873,665,718],[894,444,485,587,122,163,312,9,870,844,545,109,227,180,381,57],[450,1,454,256,999,505,747,870,241,507,251,757,513,967,238,1003],[895,429,924,69,472,974,858,907,181,494,294,248,266,990,139,117],[262,565,791,128,306,687,205,346,590,612,685,672,814,142,165,749],[940,631,168,463,352,378,777,498,222,937,12,664,590,574,947,404],[522,494,268,241,205,367,194,532,759,232,510,650,72,668,1011,634],[522,666,474,178,205,180,303,816,1015,623,82,167,482,923,713,261],[825,841,168,775,803,733,127,626,733,957,310,942,972,550,39,772],[825,841,366,341,686,573,384,404,407,388,1019,454,908,923,600,739],[825,258,725,341,803,255,124,431,407,396,68,707,383,903,522,906],[825,258,672,148,686,255,417,431,363,915,1019,650,629,312,933,212],[602,258,725,148,909,721,417,1014,171,334,223,687,826,631,32,561],[602,258,672,341,909,573,303,404,171,953,1019,854,112,570,655,305],[53,258,725,815,803,406,417,2,171,649,923,687,112,85,515,91],[53,258,725,241,803,255,417,431,407,334,923,533,870,312,363,49],[53,258,725,815,96,255,417,2,171,649,923,854,870,689,889,467],[53,258,725,148,803,406,417,816,171,649,923,168,629,570,363,230],[53,258,725,815,803,255,417,431,171,675,501,533,629,570,1012,561],[53,258,725,341,803,255,417,2,171,649,923,273,838,689,384,47],[53,258,725,241,803,406,417,2,407,334,501,273,629,570,272,49],[231,127,786,806,433,488,387,749,853,542,620,444,657,180,910,125],[102,313,960,1001,626,522,217,381,86,240,998,345,618,401,298,106],[114,968,858,587,312,608,886,741,920,452,921,66,985,79,344,132],[65,387,301,309,890,693,823,112,415,874,983,767,791,13,633,118],[210,676,577,966,461,678,441,167,80,98,897,518,744,609,256,873],[911,449,222,792,583,167,550,849,630,544,593,47,628,752,277,499],[324,652,429,185,410,539,704,458,28,168,650,439,501,755,753,533],[954,195,272,621,612,848,872,383,742,836,172,982,800,1012,577,390],[296,165,338,209,831,817,454,565,102,825,599,786,256,685,79,460],[954,766,300,1018,272,612,296,301,685,925,708,97,794,670,546,806],[491,683,734,834,696,615,69,820,586,196,49,932,367,449,82,46],[439,50,831,147,432,530,989,130,584,623,889,262,895,618,886,564],[655,1011,238,724,546,996,345,675,275,123,547,268,335,520,94,37],[546,153,119,215,845,789,944,784,871,451,343,547,612,50,636,879],[1011,249,250,417,476,20,399,92,125,88,368,739,221,703,229,361],[687,842,477,271,577,657,271,228,638,769,614,598,977,514,765,10],[856,235,459,25,861,432,498,800,317,883,992,486,511,467,735,786],[358,1002,967,336,767,449,141,885,744,509,44,986,859,893,799,582],[591,304,107,260,751,661,824,261,95,132,309,889,841,575,0,534],[825,920,357,35,96,150,937,480,833,834,256,324,916,290,134,379],[522,494,107,178,42,302,738,414,1015,488,979,468,908,902,354,452],[522,494,474,341,686,150,220,816,799,469,603,273,962,550,904,516],[825,841,168,341,686,573,937,117,976,953,68,854,908,689,72,933],[825,841,366,341,205,721,793,892,397,321,74,20,149,347,733,375],[825,258,21,341,950,112,124,431,407,488,494,468,112,446,384,933],[602,258,168,524,909,721,124,2,525,334,417,854,870,361,256,113],[602,258,366,341,803,573,417,372,799,95,223,533,225,340,274,369],[602,258,749,148,803,255,303,407,799,334,68,895,870,570,583,571],[53,258,21,815,950,406,124,431,363,334,501,20,112,439,714,272],[53,631,749,815,96,573,417,2,171,623,501,854,392,570,272,467],[53,258,725,341,803,721,303,626,171,649,923,828,112,570,363,467],[53,258,725,341,803,255,417,431,799,649,923,687,112,446,272,47],[53,258,21,341,950,721,124,2,407,649,923,273,112,446,32,47],[53,258,21,341,950,573,124,2,171,649,923,168,629,689,368,973],[339,666,474,815,96,255,124,404,397,623,1019,650,870,570,274,872],[53,258,21,341,950,302,124,2,407,649,634,168,196,446,32,47],[339,666,474,815,909,255,124,816,407,334,1019,273,870,446,274,49],[53,258,21,815,950,721,793,2,407,334,501,273,112,446,32,47],[53,258,725,341,803,255,303,2,171,649,923,273,533,446,1012,467],[53,258,725,341,803,255,124,2,171,649,923,533,838,446,515,467],[53,304,21,148,909,406,303,404,407,334,719,168,392,689,272,47],[339,355,144,241,301,721,218,117,397,876,108,0,870,570,732,323],[957,783,618,648,1012,214,293,390,509,41,469,869,890,299,10,665],[811,66,581,446,276,247,292,104,147,693,380,218,8,894,676,385],[537,997,572,366,532,952,680,987,419,920,113,256,396,988,752,813],[838,61,821,285,242,940,164,860,390,274,800,470,270,538,440,314],[77,221,842,562,892,3,687,939,131,452,248,1013,900,644,320,348],[734,838,579,605,330,594,84,185,52,569,712,329,293,634,723,540],[796,498,174,412,775,20,495,985,12,302,705,278,36,776,728,931],[522,650,366,261,87,406,20,807,686,711,231,652,200,82,303,827],[825,920,39,341,205,255,124,208,654,649,88,763,802,941,570,891],[825,920,21,524,909,551,557,347,561,13,707,390,194,117,1,710],[825,841,168,524,909,573,888,2,799,957,121,439,870,116,215,767],[825,841,944,526,909,573,124,330,759,953,260,390,43,719,489,682],[602,841,39,341,803,573,885,816,799,834,99,773,784,510,1015,906],[602,841,725,815,909,406,449,626,171,573,68,1003,826,570,21,331],[602,841,725,139,927,573,303,1020,975,953,250,984,962,340,655,346],[180,949,660,343,294,147,158,72,227,379,525,201,448,326,816,515],[764,716,454,912,656,507,314,37,829,922,371,879,973,849,105,747],[799,220,1019,281,828,668,5,316,58,266,897,708,904,176,574,457],[322,991,105,63,50,103,258,636,594,859,198,446,266,292,269,903],[45,426,97,762,162,611,19,22,230,116,222,748,643,704,488,294],[439,128,603,506,905,94,224,569,993,214,865,835,696,809,838,904],[124,829,32,876,311,663,195,7,128,347,101,272,122,519,522,253],[560,355,956,8,138,180,15,188,632,839,842,735,1019,241,346,953],[766,811,242,1019,67,279,458,30,177,129,79,823,806,905,8,699],[360,231,355,1002,952,375,232,582,551,324,8,702,269,135,117,53],[365,731,781,504,583,471,301,24,641,539,324,855,885,976,845,511],[940,494,107,53,180,269,508,502,645,980,648,977,12,754,593,681],[850,755,892,141,893,160,273,868,754,679,587,829,805,1,365,409],[620,590,520,273,111,695,209,880,552,866,360,887,202,70,873,607],[678,207,425,116,1017,140,305,37,54,122,833,158,346,687,55,589],[195,815,477,387,1023,655,183,203,925,673,251,249,352,344,212,344],[808,744,876,424,3,199,338,928,852,81,467,755,376,78,855,720],[399,462,689,998,723,317,483,822,740,861,949,56,619,307,369,669],[189,285,948,275,381,598,481,850,762,112,518,395,677,932,1022,922],[883,367,186,268,661,480,938,514,832,771,414,640,649,250,56,286],[116,686,267,209,540,866,725,315,165,885,277,579,881,777,536,978],[940,666,755,178,96,168,628,807,549,571,890,924,403,485,815,257]]},{"id":"Ava","name":"Ava","language":"en","gender":"female","prompt_audio_codes":[[962,176,8,845,548,969,47,634,520,168,735,240,854,154,785,848],[962,913,871,41,298,365,571,439,520,511,31,299,53,835,775,36],[962,913,904,524,444,54,472,968,659,923,843,297,129,1002,853,149],[1002,226,268,241,243,195,417,695,961,203,923,29,574,472,86,710],[825,116,963,903,961,407,945,143,404,756,521,284,548,279,917,639],[614,227,618,123,945,738,764,543,408,231,626,737,848,305,371,819],[902,473,59,616,65,682,138,792,476,500,966,139,373,291,462,667],[842,699,1011,114,547,293,248,331,25,506,324,681,506,833,138,429],[479,707,343,642,586,476,383,629,72,490,278,953,629,9,230,566],[307,488,3,575,711,532,714,427,110,140,835,858,968,451,676,6],[775,526,967,877,591,838,579,185,181,282,494,541,783,141,291,524],[46,930,346,919,84,407,1009,616,613,452,860,332,886,40,777,209],[445,144,946,12,746,340,737,714,185,534,675,751,47,2,475,1009],[382,333,558,211,121,513,203,973,634,957,908,513,904,418,835,488],[315,176,160,270,973,293,643,278,861,597,214,415,123,994,954,648],[63,104,694,457,827,218,810,909,115,209,643,674,540,960,250,763],[191,103,834,390,41,658,776,85,520,292,958,897,828,451,459,200],[119,165,634,712,721,568,739,608,101,240,301,59,588,152,340,145],[256,563,706,228,377,583,290,34,866,413,991,16,369,557,222,181],[347,990,36,403,523,684,746,473,664,200,994,857,765,610,981,261],[523,727,817,428,647,40,245,480,149,444,358,228,470,1001,118,378],[755,56,150,419,792,882,180,27,549,549,848,1017,984,995,440,234],[149,62,432,572,426,595,351,108,327,800,495,462,658,662,471,405],[719,441,494,82,481,733,79,686,109,948,568,410,84,92,563,845],[267,727,655,474,518,175,242,695,233,741,530,762,510,71,226,555],[701,445,356,56,127,62,848,657,78,744,484,994,475,766,335,31],[962,779,954,155,342,47,708,297,587,18,681,117,115,67,183,357],[766,264,945,351,363,1,519,550,685,410,472,571,181,556,582,79],[347,536,876,321,143,974,742,798,815,572,65,62,944,217,885,511],[433,328,373,239,289,998,781,841,590,156,1000,221,809,469,765,324],[258,892,752,669,864,790,751,609,1004,285,898,265,166,34,999,875],[450,421,929,149,606,903,6,718,65,293,542,68,786,659,992,425],[157,451,781,152,1006,795,696,439,544,330,599,733,301,384,89,686],[77,142,869,492,292,923,830,721,257,125,230,365,779,888,753,28],[590,824,43,71,74,1019,203,416,865,935,976,81,196,841,627,769],[292,119,216,723,765,389,9,963,211,108,742,150,64,43,647,363],[294,197,279,724,505,623,433,25,601,213,98,817,456,736,851,440],[347,139,916,277,239,403,680,984,313,304,617,38,16,620,18,878],[872,847,587,8,545,559,738,536,209,758,426,918,50,749,723,809],[923,919,764,446,199,976,742,766,70,468,127,941,740,449,133,0],[313,468,251,386,296,288,780,747,920,84,1007,72,622,609,634,145],[132,867,380,244,366,891,873,834,444,497,697,150,494,419,301,946],[576,447,419,375,784,939,267,1004,339,93,427,127,352,105,243,400],[109,582,758,782,229,170,396,670,422,782,786,982,82,133,105,965],[405,702,809,50,874,263,559,70,108,556,298,149,615,543,145,255],[796,787,200,398,308,951,466,127,454,848,235,439,449,563,170,171],[131,875,560,906,765,322,561,403,56,683,148,350,459,486,228,41],[556,171,141,273,29,369,316,159,528,184,367,75,433,27,926,682],[1006,826,894,169,884,620,713,352,550,378,685,981,367,234,415,983],[167,743,667,951,100,107,640,364,282,646,424,1020,309,270,580,805],[523,678,475,289,596,857,503,921,43,814,161,779,500,28,235,628],[635,762,143,862,679,341,259,526,780,941,704,239,272,233,749,237],[532,290,286,493,689,238,615,166,143,223,13,383,829,957,747,840],[584,579,738,229,592,195,193,667,359,68,88,953,335,377,524,693],[446,328,943,775,465,1006,603,1019,424,622,676,570,218,756,774,935],[68,508,893,888,971,455,370,776,876,1010,939,923,233,211,359,526],[970,82,213,21,84,274,631,485,237,432,295,119,421,383,160,489],[706,249,880,928,349,57,223,216,156,808,553,183,596,808,875,8],[466,410,15,138,421,89,695,372,193,905,37,465,409,1002,391,634],[617,278,546,164,815,947,354,279,433,275,43,873,982,967,792,894],[217,260,425,417,852,110,77,100,207,420,1007,707,475,624,126,573],[542,456,160,32,492,581,642,762,267,922,597,975,1019,363,738,435],[209,941,233,120,846,429,155,61,10,510,442,47,379,805,31,910],[425,308,481,40,661,452,291,869,946,377,977,559,433,344,936,482],[66,410,152,437,102,908,272,819,411,67,419,292,687,585,227,436],[277,221,572,162,883,202,914,532,975,590,65,538,114,241,85,958],[1,767,691,141,128,560,968,204,254,586,438,775,290,275,464,32],[198,774,763,649,774,545,904,821,422,260,37,88,449,719,107,589],[1002,296,619,435,602,307,187,144,780,522,875,415,854,657,327,220],[113,862,532,514,83,554,790,171,372,77,207,507,283,411,309,309],[77,881,35,853,902,25,50,576,1017,163,618,962,428,548,712,661],[670,631,510,739,448,960,45,47,543,969,986,56,158,816,538,296],[264,60,819,594,371,459,675,576,230,693,450,264,23,847,61,696],[455,203,983,791,567,722,761,60,567,605,855,466,722,991,186,230],[832,49,88,493,449,893,892,711,365,256,920,109,73,636,445,16],[473,636,269,423,330,782,119,71,1023,355,175,623,95,595,68,517],[1022,397,374,111,346,989,24,457,269,893,9,937,580,627,577,829],[191,824,153,279,139,228,959,87,592,882,186,188,673,363,97,992],[857,64,314,391,754,530,921,562,634,874,651,922,365,448,658,994],[410,613,238,255,172,970,383,153,747,509,565,322,591,200,130,653],[899,337,127,76,259,673,203,526,894,636,685,156,38,133,733,968],[630,521,528,930,97,15,130,776,561,558,216,835,391,1005,911,940],[467,40,672,321,994,668,503,848,609,328,230,609,209,124,388,597],[812,164,665,707,603,748,65,843,163,792,987,100,85,967,163,478],[637,651,623,878,891,675,751,415,231,784,914,707,412,481,521,796],[172,848,437,915,131,169,876,151,794,926,472,569,1013,855,924,613],[895,771,887,648,25,900,50,344,890,885,940,471,680,516,342,202],[841,456,392,951,621,500,630,817,825,783,411,90,578,810,192,839],[172,40,545,902,445,536,507,20,115,235,934,623,570,677,617,694],[109,401,842,53,846,775,345,474,195,1,83,912,655,545,975,440],[383,932,301,180,529,852,483,578,864,253,414,992,986,925,977,747],[940,631,608,128,574,649,899,973,773,653,90,637,30,945,512,739],[1002,666,268,911,545,999,805,558,653,269,818,247,30,320,79,218],[825,355,132,524,547,255,638,164,588,786,501,273,557,347,194,979],[199,258,725,341,803,367,417,431,820,49,223,687,758,510,776,382],[825,355,39,524,42,869,793,115,852,953,634,717,610,216,363,104],[199,258,944,341,950,255,885,697,820,649,923,717,149,216,301,528],[825,355,122,775,205,272,449,892,478,902,838,492,659,783,652,536]]},{"id":"Bella","name":"Bella","language":"en","gender":"female","prompt_audio_codes":[[962,913,917,378,911,259,547,248,888,764,367,350,537,397,257,602],[962,194,576,66,270,960,724,157,489,307,94,779,859,406,404,459],[962,194,672,847,297,290,569,259,55,613,692,354,432,670,473,659],[962,258,371,151,678,865,805,857,882,141,1010,763,349,512,303,21],[825,355,419,397,313,330,417,966,496,272,490,149,315,170,473,852],[64,258,122,179,574,554,212,346,259,586,634,636,194,564,435,760],[681,456,145,559,447,917,663,751,255,562,301,454,78,790,160,632],[256,554,389,643,662,282,546,550,185,920,396,313,682,842,512,35],[747,142,936,451,653,11,593,696,693,31,810,974,715,421,973,437],[28,265,828,276,838,393,900,376,544,33,266,933,140,328,48,718],[920,347,85,254,103,708,525,361,502,762,682,593,256,188,663,932],[717,538,221,642,165,539,302,569,814,82,296,718,614,676,423,551],[799,401,58,854,365,411,418,612,186,8,400,360,0,587,728,669],[177,831,744,939,472,963,72,845,436,14,1021,404,719,954,650,433],[928,645,915,281,344,277,147,411,400,435,23,558,494,13,53,637],[1006,878,619,871,911,192,931,800,46,516,494,307,991,405,509,549],[359,1008,673,142,411,47,391,712,964,380,597,469,956,143,340,276],[256,889,530,313,417,871,323,706,880,251,84,30,638,178,27,826],[344,922,547,607,292,596,795,519,847,366,637,101,511,339,802,943],[917,329,371,72,517,58,322,341,572,95,289,390,370,172,399,822],[515,589,930,752,881,467,1006,685,927,575,48,404,361,769,623,916],[100,913,801,478,967,846,969,214,569,659,252,935,440,582,303,810],[821,303,499,626,461,818,526,692,804,37,242,143,742,976,332,401],[31,758,689,143,5,809,714,281,1011,737,190,458,298,606,799,232],[474,365,279,943,838,871,441,163,537,606,432,847,51,872,50,906],[888,918,576,160,907,184,634,815,283,42,619,347,869,181,27,478],[230,7,741,491,457,126,421,710,845,244,603,445,432,227,25,641],[506,407,659,409,838,230,850,276,376,870,21,44,957,912,301,145],[653,448,107,237,630,422,512,534,61,551,659,713,948,927,559,312],[228,858,836,233,1009,491,484,244,847,583,646,279,820,287,150,501],[27,197,406,771,721,424,768,779,37,1008,316,985,713,348,194,287],[914,35,936,983,1021,383,81,57,301,850,135,152,477,474,186,640],[106,124,162,290,716,835,412,204,755,417,990,265,896,781,767,601],[485,1009,468,427,71,218,443,330,999,537,997,199,934,245,525,207],[637,463,79,389,410,314,117,867,769,499,838,362,855,221,178,421],[932,770,938,845,598,827,926,854,717,719,217,475,935,613,982,730],[412,833,294,159,746,426,380,53,731,824,719,253,910,312,967,552],[258,253,784,645,8,535,569,566,788,563,777,1023,835,696,520,532],[796,787,321,676,630,739,794,287,821,980,129,361,113,561,534,203],[557,516,621,714,45,398,566,921,240,935,542,527,944,575,137,203],[396,817,563,706,921,242,1018,897,57,609,314,906,366,107,490,889],[100,363,683,558,125,849,727,894,215,707,378,747,399,306,277,794],[918,412,655,595,124,29,279,1016,655,0,747,759,744,92,690,538],[505,930,581,83,859,984,25,631,920,579,716,886,484,960,11,500],[799,452,501,859,332,77,368,428,53,923,207,713,731,212,554,98],[691,361,874,655,366,486,769,291,617,133,940,28,671,500,330,422],[498,68,268,563,328,874,212,364,241,203,177,905,507,89,822,375],[1001,154,383,319,127,94,199,908,783,412,105,42,922,337,513,540],[313,779,493,900,905,397,665,377,290,579,520,638,526,231,597,627],[40,316,284,178,875,888,245,838,829,292,662,80,83,247,555,612],[540,699,459,840,1019,1007,677,707,910,366,377,656,28,589,775,260],[258,414,202,869,987,461,943,715,645,293,312,329,555,677,337,794],[898,348,787,715,874,756,115,884,128,202,503,189,146,79,687,247],[825,631,716,80,352,548,18,61,964,349,64,477,923,689,217,637],[825,355,725,526,96,16,885,61,759,286,47,389,143,212,126,581],[825,841,39,302,686,330,793,626,999,704,339,773,943,510,8,786],[825,631,168,179,803,378,945,208,295,876,832,988,972,154,618,807],[825,631,650,587,205,134,937,966,59,388,942,233,956,85,832,201],[825,841,168,341,909,721,72,61,1016,388,74,829,629,850,232,715]]},{"id":"Adam","name":"Adam","language":"en","gender":"male","prompt_audio_codes":[[482,194,670,241,909,406,417,626,171,334,923,273,870,689,272,49],[482,194,670,241,909,406,417,626,171,334,923,273,870,689,272,49],[482,194,670,241,909,406,417,626,171,334,923,273,870,689,272,49],[808,1000,66,600,485,277,944,25,662,364,32,715,691,374,470,287],[88,705,992,665,895,72,925,897,613,160,53,916,948,331,118,200],[563,615,634,99,302,330,393,829,145,69,214,850,763,298,641,583],[88,34,722,855,31,758,169,458,936,565,425,1015,801,476,764,422],[660,683,111,641,1018,487,842,411,480,246,1016,538,10,710,34,849],[189,105,926,400,251,416,1016,728,663,677,443,44,453,725,469,451],[559,413,496,124,447,509,989,260,847,257,326,400,1005,133,348,30],[699,921,354,100,716,607,777,158,568,173,188,535,240,46,845,451],[63,85,283,644,308,631,792,870,830,363,375,668,600,512,355,51],[970,253,766,539,921,623,687,919,517,280,131,718,778,669,281,69],[51,13,20,918,427,460,734,684,944,276,619,1005,89,358,509,855],[765,290,863,576,590,747,979,301,693,640,71,809,362,910,99,779],[476,329,399,738,970,704,975,463,635,585,331,596,60,254,791,672],[747,237,98,451,554,264,1015,268,186,961,401,112,144,630,414,890],[313,734,978,743,190,696,259,70,578,248,962,333,34,236,868,500],[118,426,977,327,145,332,940,215,923,812,759,749,52,132,240,111],[184,102,203,74,3,954,926,522,32,468,88,834,936,298,585,749],[445,397,425,647,336,55,712,40,636,619,694,810,226,934,294,887],[928,226,606,719,667,650,227,891,409,91,347,260,208,491,407,142],[802,15,953,646,389,529,606,811,720,301,18,709,697,397,410,217],[811,15,220,945,1020,172,357,247,112,14,279,283,144,703,454,829],[903,49,814,1003,451,840,1015,529,964,912,351,918,516,299,199,714],[943,758,519,719,571,754,205,626,440,765,938,383,577,1018,1004,561],[501,122,906,67,17,637,325,615,543,913,47,495,254,620,332,740],[299,346,385,654,987,535,757,529,442,992,28,86,23,305,170,939],[13,1003,973,522,505,881,339,435,68,733,321,846,660,168,891,644],[123,414,660,440,550,506,326,858,980,57,466,686,705,799,1017,177],[682,217,745,78,865,712,33,552,385,800,389,902,335,404,675,1016],[766,122,646,333,326,879,87,64,492,227,698,973,489,553,991,925],[352,346,347,272,687,154,186,617,375,804,786,159,237,508,919,596],[865,288,871,18,61,409,936,920,914,398,835,333,462,812,832,816],[758,735,460,330,253,535,552,256,287,868,195,771,854,748,845,183],[812,690,796,676,807,901,759,220,767,36,574,83,240,546,158,609],[973,179,860,518,20,712,691,625,259,550,649,293,434,406,738,122],[85,366,822,253,367,519,875,147,149,833,697,36,37,322,304,259],[51,469,50,905,454,433,780,258,525,244,406,871,488,457,196,496],[441,286,23,909,974,756,393,509,434,789,65,435,139,139,114,477],[920,724,666,1017,284,401,966,815,1002,272,445,239,323,575,147,726],[743,910,393,813,924,537,897,750,708,731,921,315,406,591,912,814],[290,759,777,425,428,809,10,24,458,736,83,931,480,105,507,949],[975,604,683,382,787,443,550,373,972,326,50,779,236,261,449,568],[198,882,605,508,887,227,467,384,416,318,515,683,545,125,1003,300],[560,592,517,483,225,988,644,700,431,637,206,108,791,300,227,495],[691,1010,421,688,465,64,362,811,314,974,837,706,962,100,1,742],[824,280,940,90,781,886,874,710,409,318,766,478,417,227,857,210],[80,440,157,99,187,13,909,1018,883,375,274,928,581,407,401,442],[468,414,499,694,365,642,424,24,891,748,21,154,139,34,556,153],[910,969,700,909,310,723,250,572,882,117,667,847,559,871,949,834],[4,48,312,71,707,613,573,172,898,604,35,319,577,182,829,739],[612,474,479,171,662,199,234,821,20,659,393,415,320,210,182,62],[195,866,361,120,264,710,663,934,699,626,796,748,352,23,883,759],[179,608,827,875,450,784,340,293,327,696,93,91,175,844,643,437],[617,935,232,193,150,525,914,265,751,308,993,446,203,810,203,531],[482,194,670,35,547,493,793,626,407,95,511,1003,392,1010,272,113],[482,194,670,241,909,406,417,404,407,334,923,273,112,570,272,49],[482,194,670,241,909,406,417,404,407,334,501,273,112,570,272,49]]},{"id":"Nathan","name":"Nathan","language":"en","gender":"male","prompt_audio_codes":[[602,763,1009,53,422,537,945,305,561,62,882,632,193,470,339,518],[602,666,168,815,927,378,793,404,561,388,923,212,209,850,730,467],[602,494,168,815,513,378,1019,123,407,955,880,168,458,212,870,917],[602,494,366,815,950,406,885,407,397,934,953,168,380,524,854,465],[100,587,663,1004,412,983,695,623,852,382,720,690,38,416,833,140],[248,938,627,158,862,980,471,662,559,892,353,156,457,205,574,50],[229,610,745,605,35,88,590,754,137,938,988,917,617,988,170,294],[118,138,776,949,850,869,464,666,358,746,395,941,704,596,4,149],[206,121,261,45,734,167,640,1006,227,997,936,254,865,223,704,496],[598,718,255,186,949,133,210,163,245,157,379,24,147,240,238,172],[941,773,997,581,583,829,494,583,979,905,226,681,623,543,851,44],[615,1009,813,792,424,736,401,159,525,992,853,376,923,1004,294,402],[311,630,28,159,716,244,871,46,318,13,626,528,126,119,190,379],[230,124,587,833,888,440,553,111,422,176,193,356,958,517,757,651],[199,920,672,35,16,2,417,966,232,710,851,643,226,522,24,238],[199,841,672,341,205,180,607,406,561,279,339,100,236,757,436,773],[964,606,118,923,266,970,110,790,833,354,1014,302,23,578,693,980],[1002,252,654,476,456,574,859,221,546,193,848,648,714,642,106,288],[522,763,847,868,90,88,874,794,720,482,905,830,396,594,396,212],[771,401,935,338,336,708,904,433,452,166,17,1020,149,767,542,345],[527,987,743,210,970,48,463,432,21,628,305,545,450,148,607,57],[158,688,911,741,420,754,80,859,81,492,706,919,340,61,539,629],[441,291,46,999,136,229,370,331,332,76,738,78,218,772,574,255],[901,746,673,536,100,241,911,808,455,569,554,496,243,245,1011,342],[953,357,661,606,839,985,350,157,31,147,356,550,432,903,997,379],[1015,530,25,230,605,620,17,927,809,314,737,370,706,40,39,385],[254,936,144,871,773,314,836,162,355,72,656,951,265,280,900,25],[615,973,779,2,497,851,164,8,48,499,311,483,713,183,448,993],[450,734,901,5,297,624,252,166,440,568,816,817,994,900,479,80],[678,387,117,679,487,759,935,978,723,477,890,115,816,175,51,191],[311,113,112,3,395,717,192,338,361,121,8,169,124,865,327,600],[184,996,384,818,580,111,930,246,471,437,821,371,1012,188,739,632],[439,448,677,500,322,503,691,964,643,630,856,895,918,388,236,256],[421,34,633,99,43,482,783,182,761,861,477,654,513,782,68,792],[126,709,697,614,461,177,499,831,313,803,662,520,894,484,397,608],[1010,261,637,496,22,605,511,132,236,943,219,914,377,919,345,939],[759,367,656,451,572,784,35,438,911,593,910,440,548,8,1018,125],[58,358,43,958,622,366,848,446,521,724,434,138,793,601,497,387],[563,18,969,386,454,687,172,852,127,669,641,960,472,1017,859,125],[930,784,108,402,820,380,105,476,380,625,565,763,682,267,502,637],[245,712,749,412,600,717,131,545,765,150,33,666,449,199,505,1005],[417,389,805,480,207,956,321,274,830,559,881,738,16,7,823,710],[672,869,161,919,984,186,442,114,373,390,34,352,353,731,430,154],[640,865,276,838,219,33,940,207,439,157,449,780,312,846,356,212],[934,458,51,321,62,802,165,652,45,837,991,941,160,151,810,501],[128,87,228,365,513,966,810,212,898,900,213,330,480,315,911,199],[528,248,745,17,114,471,686,56,450,595,549,894,1022,767,960,977],[409,906,952,7,731,588,30,272,804,53,53,574,845,1007,42,364],[254,167,37,136,793,933,723,248,896,68,352,698,346,954,822,459],[997,54,583,563,408,196,40,360,404,50,916,519,662,793,188,966],[685,233,72,486,317,245,929,888,1003,254,17,611,569,755,958,805],[686,662,184,724,69,577,268,440,99,308,386,802,324,854,250,331],[2,833,536,937,902,389,893,81,419,151,703,704,196,973,886,284],[197,892,136,944,387,710,739,518,235,1013,47,233,487,413,593,202],[348,663,799,632,664,783,1009,146,945,137,898,782,896,186,7,124],[934,111,400,723,734,788,510,625,62,416,1001,248,204,1013,899,811],[116,258,21,307,817,642,329,922,515,1023,184,907,441,1019,381,1023],[319,13,716,347,701,628,401,994,221,404,28,735,941,685,185,524],[1002,700,725,431,812,951,384,20,945,522,407,953,812,40,796,449],[142,631,768,230,864,267,561,102,770,362,366,475,643,25,424,306],[602,650,200,302,42,333,449,320,720,178,50,752,12,290,346,29],[602,700,474,815,42,406,124,807,407,675,781,168,196,688,1,707],[1002,961,515,906,95,328,26,557,546,861,674,572,295,548,923,7],[1002,494,994,968,447,269,759,359,612,299,219,716,201,158,240,811],[483,436,554,284,837,783,592,279,401,889,934,974,521,654,840,46],[580,627,566,462,189,390,1002,658,330,92,212,997,845,48,102,516],[2,153,760,316,280,381,864,1009,164,76,123,892,852,425,924,765],[970,625,174,68,921,20,751,49,785,128,940,71,762,627,71,333],[116,1000,261,598,993,827,37,596,668,948,532,107,660,707,872,232],[118,891,270,841,461,925,769,291,529,152,173,639,675,532,434,423],[173,940,53,313,567,961,73,44,293,784,1014,663,540,862,77,648],[620,63,743,521,998,138,359,399,370,361,202,843,339,329,217,89],[966,479,842,936,347,351,195,206,741,559,531,536,973,484,987,742],[357,938,530,873,178,801,641,645,123,499,602,365,134,977,65,764],[713,954,878,750,235,1007,763,364,673,126,784,24,187,559,791,648],[310,865,138,456,263,668,416,625,501,950,571,885,288,241,79,981],[430,421,1002,969,3,247,703,116,659,660,474,5,142,685,423,424],[103,740,96,742,435,512,347,107,732,611,856,884,78,695,858,380],[20,1014,763,237,620,367,701,376,656,830,948,442,564,593,185,827],[439,303,427,138,704,664,67,476,786,444,327,201,708,166,246,13],[327,323,36,695,463,506,207,272,677,870,122,578,235,663,504,878],[515,109,842,443,707,820,749,583,710,225,841,276,947,87,676,632],[862,700,82,557,363,556,276,798,535,1010,575,87,373,188,568,350],[928,338,356,633,593,858,394,571,735,104,421,955,534,118,625,308],[358,688,252,956,973,204,264,220,208,569,64,389,926,785,887,848],[522,687,813,324,711,648,105,902,542,788,444,1010,260,716,698,449],[810,851,343,513,847,411,878,479,78,619,241,279,878,698,328,91],[245,349,683,989,903,338,400,407,960,732,607,623,884,900,781,822],[0,522,600,560,876,640,753,336,438,928,180,312,363,281,862,117],[355,396,999,771,457,610,498,613,728,626,733,822,116,345,968,384],[551,52,614,360,302,366,922,80,173,335,166,534,703,403,769,977],[432,515,955,285,829,166,516,388,455,144,578,398,628,715,260,988],[118,993,294,411,799,612,667,591,1014,912,742,818,719,779,985,829],[615,871,509,777,212,445,90,1006,477,429,791,452,753,545,573,212],[721,141,539,165,594,3,720,51,113,189,156,127,206,878,951,520],[137,84,421,60,152,933,373,632,809,107,162,133,276,303,634,224],[135,520,963,951,491,56,455,950,667,474,126,916,736,725,57,678],[409,409,959,414,518,729,563,864,69,416,865,279,825,703,440,219],[861,789,129,117,51,29,864,374,1010,380,933,170,993,273,469,1010],[861,926,404,208,191,806,352,814,988,907,107,773,535,238,72,161],[448,566,174,890,572,355,61,903,81,814,519,330,619,753,896,245],[47,291,920,769,678,940,86,628,761,275,764,384,112,903,71,521],[118,58,307,652,668,241,979,657,543,701,727,501,8,86,943,269],[841,892,654,124,283,299,961,371,486,881,644,363,608,1009,124,64],[993,445,39,506,726,170,444,882,233,513,259,715,155,859,858,409],[53,700,366,131,96,688,557,139,759,574,502,20,169,117,395,223],[496,494,474,535,42,302,533,626,920,573,500,413,777,144,944,980],[602,763,366,815,547,597,918,59,228,937,50,470,960,742,474,885],[602,763,360,230,547,688,600,990,397,537,285,614,759,999,596,658],[670,494,485,341,1002,564,852,726,759,311,297,506,889,347,373,94],[723,480,215,312,47,11,168,1022,918,221,71,1002,709,347,616,471],[413,399,173,1022,245,954,826,12,771,151,384,197,412,301,424,141],[888,903,138,264,781,538,753,811,242,524,887,800,348,411,315,555],[853,812,341,132,488,179,379,285,162,563,65,432,766,559,819,539],[652,414,757,57,263,884,694,188,25,659,1011,811,5,25,694,612],[773,820,673,888,395,779,522,975,254,903,127,76,747,91,611,240],[128,579,479,393,515,445,90,534,432,178,746,42,304,222,578,684],[312,67,583,810,637,570,535,513,912,211,303,599,65,545,611,79],[37,799,615,998,5,675,334,669,421,145,173,603,70,129,654,311],[721,811,737,151,375,979,748,849,785,881,77,265,804,705,517,733],[773,251,288,1002,725,408,674,440,179,429,299,379,151,48,412,234],[338,247,553,573,784,216,591,673,553,183,689,810,483,288,55,553],[876,821,299,386,129,321,924,715,937,213,994,29,324,773,45,408],[116,666,654,464,830,722,578,762,789,478,780,775,506,304,435,730],[602,666,509,148,803,11,273,807,588,95,2,648,533,503,967,593],[642,841,285,131,487,1002,600,638,816,608,346,910,71,539,853,29],[602,666,935,526,301,251,476,713,799,711,556,687,956,785,898,622],[602,666,701,524,909,406,303,372,496,44,74,168,801,879,456,439],[602,13,527,139,339,908,263,638,961,15,923,708,826,678,376,518],[1017,290,512,797,231,629,808,834,309,797,606,59,63,193,288,732],[992,250,299,260,360,749,18,26,304,797,834,761,741,430,2,921],[96,454,133,160,349,977,592,143,243,732,255,71,612,185,247,572],[335,803,346,244,33,945,642,77,172,481,105,388,31,497,797,841],[164,245,204,238,279,580,794,934,780,722,534,59,802,214,413,361],[684,191,662,2,57,104,794,276,94,304,486,513,34,121,913,586],[51,790,253,104,199,250,741,423,196,298,503,373,627,10,75,62],[773,551,596,404,868,763,869,441,587,62,49,935,815,494,966,677],[446,475,255,814,6,403,926,54,69,1014,348,937,334,999,314,940],[853,1012,603,155,370,248,40,39,295,946,1007,207,801,715,112,850],[180,276,602,234,861,604,109,402,913,887,378,861,803,892,772,122],[730,901,939,1017,594,363,849,153,461,459,34,389,218,915,209,1018],[486,945,590,248,82,433,848,1016,43,471,307,509,709,961,53,666],[490,124,210,383,716,722,394,719,48,939,827,695,265,270,532,973],[51,560,348,458,955,298,17,855,757,6,916,919,603,311,288,184],[39,629,411,189,795,692,395,178,873,338,398,258,764,236,567,109],[612,877,377,450,209,935,529,402,438,1014,630,827,484,587,969,598],[54,222,588,651,79,503,829,289,702,368,639,751,329,239,1015,225],[903,786,78,716,46,881,361,624,326,534,323,868,1012,425,828,216],[284,736,1006,293,755,154,19,228,591,745,575,344,72,91,132,476],[965,904,535,72,776,32,890,838,949,584,65,509,154,201,1021,478],[799,146,126,951,596,553,919,992,611,742,665,85,505,8,12,450],[921,509,294,709,286,138,805,966,744,586,530,277,28,573,472,779],[307,644,10,516,197,1,585,393,897,820,503,670,443,637,737,577],[540,805,732,484,678,469,242,850,576,524,675,94,329,325,813,555],[970,14,877,381,959,819,980,587,249,569,960,702,462,155,472,168],[432,368,337,78,266,633,693,562,92,895,441,896,982,229,260,514],[394,172,252,180,764,161,449,145,338,983,210,871,155,235,440,530],[964,240,862,918,98,282,83,937,596,582,919,905,8,612,956,564],[89,270,875,231,532,546,466,703,784,1008,385,979,144,454,914,135],[841,867,219,840,725,885,138,128,32,965,793,119,972,744,1020,4],[49,673,572,347,548,191,332,442,712,121,202,794,476,718,143,474],[825,631,168,476,1002,170,1004,346,334,48,361,206,414,31,126,245],[825,631,749,526,205,276,793,372,561,7,47,20,590,356,954,597],[825,666,330,302,448,458,740,698,774,687,446,99,12,839,209,299],[825,631,716,241,334,783,124,438,774,573,387,329,373,993,881,635],[24,494,474,354,927,493,805,136,887,544,174,94,576,542,300,927],[602,258,749,968,803,908,124,785,687,368,500,453,490,838,556,465],[602,666,219,771,250,877,911,743,799,396,554,657,482,688,933,754]]}]}
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
"""Lifecycle and inference verbs for the local TTS sidecar:
|
|
2
|
+
``start``, ``load``, ``unload``, ``stop``, ``voices``, and ``synthesize``.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
import contextlib
|
|
8
|
+
import http.client
|
|
9
|
+
import json
|
|
10
|
+
import os
|
|
11
|
+
import subprocess
|
|
12
|
+
import sys
|
|
13
|
+
import time
|
|
14
|
+
import urllib.error
|
|
15
|
+
import urllib.parse
|
|
16
|
+
import urllib.request
|
|
17
|
+
from pathlib import Path
|
|
18
|
+
from typing import Any, Literal, cast
|
|
19
|
+
|
|
20
|
+
from localmodels import (
|
|
21
|
+
auth_proxy,
|
|
22
|
+
debug_mode,
|
|
23
|
+
http_local,
|
|
24
|
+
process_identity,
|
|
25
|
+
stack_ports,
|
|
26
|
+
tts_catalog,
|
|
27
|
+
tts_jobs,
|
|
28
|
+
tts_state,
|
|
29
|
+
tts_workers,
|
|
30
|
+
)
|
|
31
|
+
from localmodels.tts_model import (
|
|
32
|
+
EFFECTIVE_DEVICES,
|
|
33
|
+
FALLBACK_REASONS,
|
|
34
|
+
RUNTIME_SCHEMA,
|
|
35
|
+
SYNTHESIZE_SCHEMA,
|
|
36
|
+
VOICES_SCHEMA,
|
|
37
|
+
EffectiveDevice,
|
|
38
|
+
FallbackReason,
|
|
39
|
+
TtsError,
|
|
40
|
+
TtsResponseFormat,
|
|
41
|
+
TtsRuntime,
|
|
42
|
+
TtsRuntimeDocument,
|
|
43
|
+
TtsStopDocument,
|
|
44
|
+
TtsSynthesizeDocument,
|
|
45
|
+
TtsVoiceInfo,
|
|
46
|
+
TtsVoicesDocument,
|
|
47
|
+
emit_load_progress,
|
|
48
|
+
stopped_runtime,
|
|
49
|
+
validate_input_text,
|
|
50
|
+
validate_response_format,
|
|
51
|
+
validate_speed,
|
|
52
|
+
validate_voice_id,
|
|
53
|
+
)
|
|
54
|
+
|
|
55
|
+
START_TIMEOUT_S = 30.0
|
|
56
|
+
SHUTDOWN_HTTP_TIMEOUT_S = 1.0
|
|
57
|
+
SHUTDOWN_POLL_S = 1.0
|
|
58
|
+
STOP_GRACE_S = 3.0
|
|
59
|
+
LOAD_HTTP_TIMEOUT_S = 90.0
|
|
60
|
+
SYNTH_HTTP_TIMEOUT_S = 180.0
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def choose_port(requested: int | None = None) -> int:
|
|
64
|
+
"""Validate an explicit port or select the first free loopback port from ``TTS_PORTS``."""
|
|
65
|
+
if requested is not None:
|
|
66
|
+
if not 1 <= requested <= 65535:
|
|
67
|
+
raise TtsError("INVALID_CONFIG", f"--port must be in 1..65535 (got {requested})")
|
|
68
|
+
return requested
|
|
69
|
+
if debug_mode.current().mode == "simulate":
|
|
70
|
+
return auth_proxy.free_port()
|
|
71
|
+
for candidate in stack_ports.TTS_PORTS:
|
|
72
|
+
try:
|
|
73
|
+
if not stack_ports.loopback_listening(candidate):
|
|
74
|
+
return int(candidate)
|
|
75
|
+
except Exception: # noqa: BLE001
|
|
76
|
+
continue
|
|
77
|
+
raise TtsError(
|
|
78
|
+
"RUNTIME_ERROR",
|
|
79
|
+
"all default TTS ports (18380, 18528..18559) are in use; pass --port",
|
|
80
|
+
failed=True,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def _sidecar_error(status: int, parsed: dict[str, Any] | None, fallback_msg: str) -> TtsError:
|
|
85
|
+
err = parsed.get("error") if isinstance(parsed, dict) else None
|
|
86
|
+
code = "RUNTIME_ERROR"
|
|
87
|
+
msg = fallback_msg
|
|
88
|
+
if isinstance(err, dict):
|
|
89
|
+
raw_code = str(err.get("code") or "")
|
|
90
|
+
if raw_code in (
|
|
91
|
+
"MODEL_UNKNOWN",
|
|
92
|
+
"VOICE_UNKNOWN",
|
|
93
|
+
"INVALID_CONFIG",
|
|
94
|
+
"INVALID_INPUT",
|
|
95
|
+
"INVALID_STATE",
|
|
96
|
+
"ENGINE_UNAVAILABLE",
|
|
97
|
+
):
|
|
98
|
+
code = raw_code
|
|
99
|
+
if isinstance(err.get("message"), str) and err["message"]:
|
|
100
|
+
msg = err["message"]
|
|
101
|
+
return TtsError(code, msg, failed=status >= 500 or status == 0)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def _wait_sidecar_healthy(
|
|
105
|
+
base_url: str,
|
|
106
|
+
proc: subprocess.Popen[bytes],
|
|
107
|
+
log_path: Path,
|
|
108
|
+
timeout_s: float = START_TIMEOUT_S,
|
|
109
|
+
) -> None:
|
|
110
|
+
deadline = time.monotonic() + timeout_s
|
|
111
|
+
while time.monotonic() < deadline:
|
|
112
|
+
code = proc.poll()
|
|
113
|
+
if code is not None:
|
|
114
|
+
tail = ""
|
|
115
|
+
with contextlib.suppress(OSError):
|
|
116
|
+
tail = log_path.read_text(encoding="utf-8", errors="replace")[-500:].strip()
|
|
117
|
+
detail = f": {tail}" if tail else ""
|
|
118
|
+
raise TtsError(
|
|
119
|
+
"RUNTIME_ERROR",
|
|
120
|
+
f"tts sidecar exited early with status {code}{detail}",
|
|
121
|
+
failed=True,
|
|
122
|
+
)
|
|
123
|
+
health = tts_state.sidecar_request(base_url, "/health", timeout=1.0)
|
|
124
|
+
if health is not None and health.get("status") == "ok":
|
|
125
|
+
return
|
|
126
|
+
time.sleep(0.1)
|
|
127
|
+
process_identity.kill_started(proc.pid)
|
|
128
|
+
raise TtsError(
|
|
129
|
+
"RUNTIME_ERROR",
|
|
130
|
+
f"tts sidecar did not become healthy within {timeout_s:.0f}s",
|
|
131
|
+
failed=True,
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def _spawn_sidecar(base_dir: str, port: int, state_dir: Path | None) -> str:
|
|
136
|
+
resolved_state = tts_state.root(state_dir).parent
|
|
137
|
+
tts_state.ensure_api_key(state_dir)
|
|
138
|
+
tts_workers.ensure_run_dir(state_dir)
|
|
139
|
+
log_path = tts_state.server_log_path(state_dir)
|
|
140
|
+
log_path.parent.mkdir(parents=True, exist_ok=True)
|
|
141
|
+
argv = [
|
|
142
|
+
sys.executable,
|
|
143
|
+
"-P",
|
|
144
|
+
"-s",
|
|
145
|
+
"-m",
|
|
146
|
+
"localmodels.tts_sidecar",
|
|
147
|
+
"--base-dir",
|
|
148
|
+
os.path.expanduser(base_dir),
|
|
149
|
+
"--host",
|
|
150
|
+
"127.0.0.1",
|
|
151
|
+
"--port",
|
|
152
|
+
str(port),
|
|
153
|
+
"--state-dir",
|
|
154
|
+
str(resolved_state),
|
|
155
|
+
]
|
|
156
|
+
env = dict(os.environ)
|
|
157
|
+
env["LOCALMODELS_STATE"] = str(resolved_state)
|
|
158
|
+
pkg_root = str(Path(__file__).resolve().parents[1])
|
|
159
|
+
cur_pp = env.get("PYTHONPATH", "")
|
|
160
|
+
if pkg_root not in cur_pp.split(os.pathsep):
|
|
161
|
+
env["PYTHONPATH"] = pkg_root if not cur_pp else pkg_root + os.pathsep + cur_pp
|
|
162
|
+
with open(os.devnull, "rb") as devnull, log_path.open("ab") as log_stream:
|
|
163
|
+
proc = process_identity.spawn_detached(
|
|
164
|
+
argv,
|
|
165
|
+
stdin=devnull,
|
|
166
|
+
stdout=log_stream,
|
|
167
|
+
stderr=log_stream,
|
|
168
|
+
env=env,
|
|
169
|
+
)
|
|
170
|
+
pid_file = tts_state.server_pid_path(state_dir)
|
|
171
|
+
with contextlib.suppress(OSError, RuntimeError):
|
|
172
|
+
process_identity.save(pid_file, proc.pid)
|
|
173
|
+
base_url = f"http://127.0.0.1:{port}"
|
|
174
|
+
_wait_sidecar_healthy(base_url, proc, log_path)
|
|
175
|
+
return base_url
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
def _ensure_running(
|
|
179
|
+
base_dir: str,
|
|
180
|
+
*,
|
|
181
|
+
port: int | None = None,
|
|
182
|
+
state_dir: Path | None = None,
|
|
183
|
+
) -> TtsRuntime:
|
|
184
|
+
if port is not None:
|
|
185
|
+
choose_port(port)
|
|
186
|
+
cfg = tts_state.load_config(state_dir)
|
|
187
|
+
live = tts_state.probe_live_runtime(cfg, state_dir)
|
|
188
|
+
if live["running"]:
|
|
189
|
+
return live
|
|
190
|
+
with tts_state.locked(state_dir):
|
|
191
|
+
live = tts_state.probe_live_runtime(cfg, state_dir)
|
|
192
|
+
if live["running"]:
|
|
193
|
+
return live
|
|
194
|
+
chosen = choose_port(port)
|
|
195
|
+
_spawn_sidecar(base_dir, chosen, state_dir)
|
|
196
|
+
rt = tts_state.probe_live_runtime(cfg, state_dir, timeout=2.0)
|
|
197
|
+
if not rt["running"]:
|
|
198
|
+
raise TtsError("RUNTIME_ERROR", "tts sidecar started but failed status probe", failed=True)
|
|
199
|
+
return rt
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
def start(
|
|
203
|
+
base_dir: str,
|
|
204
|
+
*,
|
|
205
|
+
standby: bool = True,
|
|
206
|
+
model_id: str | None = None,
|
|
207
|
+
port: int | None = None,
|
|
208
|
+
state_dir: Path | None = None,
|
|
209
|
+
) -> TtsRuntimeDocument:
|
|
210
|
+
"""Idempotently start the standby-first TTS sidecar and optionally load a model."""
|
|
211
|
+
if model_id is not None and model_id not in tts_catalog.V1_TTS_MODEL_IDS:
|
|
212
|
+
raise TtsError("MODEL_UNKNOWN", f"unknown tts model: {model_id}")
|
|
213
|
+
if port is not None:
|
|
214
|
+
choose_port(port)
|
|
215
|
+
rt = _ensure_running(base_dir, port=port, state_dir=state_dir)
|
|
216
|
+
if model_id is not None or not standby:
|
|
217
|
+
target = model_id or tts_state.load_config(state_dir)["model_id"]
|
|
218
|
+
status_code, parsed = tts_state.sidecar_request_detail(
|
|
219
|
+
str(rt["base_url"]),
|
|
220
|
+
"/v1/tts/load",
|
|
221
|
+
method="POST",
|
|
222
|
+
key_file=rt["key_file"],
|
|
223
|
+
payload={"model_id": target},
|
|
224
|
+
timeout=LOAD_HTTP_TIMEOUT_S,
|
|
225
|
+
)
|
|
226
|
+
if not (200 <= status_code < 300):
|
|
227
|
+
raise _sidecar_error(status_code, parsed, f"failed to load tts model {target}")
|
|
228
|
+
rt = tts_state.probe_live_runtime(tts_state.load_config(state_dir), state_dir)
|
|
229
|
+
return {"schema": RUNTIME_SCHEMA, "ok": True, "runtime": rt}
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
def load(
|
|
233
|
+
model_id: str,
|
|
234
|
+
base_dir: str,
|
|
235
|
+
*,
|
|
236
|
+
use_gpu: bool | None = None,
|
|
237
|
+
state_dir: Path | None = None,
|
|
238
|
+
) -> TtsRuntimeDocument:
|
|
239
|
+
"""Ensure sidecar running, load ``model_id`` with 4-step JSONL progress, return runtime."""
|
|
240
|
+
try:
|
|
241
|
+
spec = tts_catalog.tts_model(model_id)
|
|
242
|
+
except KeyError:
|
|
243
|
+
raise TtsError("MODEL_UNKNOWN", f"unknown tts model: {model_id}") from None
|
|
244
|
+
emit_load_progress(spec.id, "prepare", detail="verifying weights")
|
|
245
|
+
if not tts_jobs.weights_installed(spec, base_dir):
|
|
246
|
+
raise TtsError(
|
|
247
|
+
"INVALID_STATE",
|
|
248
|
+
f"tts model {spec.id} is not downloaded; run `localmodels tts download {spec.id}`",
|
|
249
|
+
)
|
|
250
|
+
emit_load_progress(spec.id, "start", detail="ensuring sidecar is running")
|
|
251
|
+
rt = _ensure_running(base_dir, state_dir=state_dir)
|
|
252
|
+
emit_load_progress(spec.id, "load", detail="starting model worker")
|
|
253
|
+
payload: dict[str, object] = {"model_id": spec.id}
|
|
254
|
+
if use_gpu is not None:
|
|
255
|
+
payload["use_gpu"] = use_gpu
|
|
256
|
+
status_code, parsed = tts_state.sidecar_request_detail(
|
|
257
|
+
str(rt["base_url"]),
|
|
258
|
+
"/v1/tts/load",
|
|
259
|
+
method="POST",
|
|
260
|
+
key_file=rt["key_file"],
|
|
261
|
+
payload=payload,
|
|
262
|
+
timeout=LOAD_HTTP_TIMEOUT_S,
|
|
263
|
+
)
|
|
264
|
+
if not (200 <= status_code < 300):
|
|
265
|
+
raise _sidecar_error(status_code, parsed, f"failed to load tts model {spec.id}")
|
|
266
|
+
emit_load_progress(spec.id, "warm", detail="worker ready")
|
|
267
|
+
updated = tts_state.probe_live_runtime(tts_state.load_config(state_dir), state_dir)
|
|
268
|
+
return {"schema": RUNTIME_SCHEMA, "ok": True, "runtime": updated}
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def unload(base_dir: str, *, state_dir: Path | None = None) -> TtsRuntimeDocument:
|
|
272
|
+
"""Terminate the active TTS worker while keeping the sidecar in standby."""
|
|
273
|
+
_ = base_dir
|
|
274
|
+
cfg = tts_state.load_config(state_dir)
|
|
275
|
+
live = tts_state.probe_live_runtime(cfg, state_dir)
|
|
276
|
+
if not live["running"] or not live["base_url"]:
|
|
277
|
+
return {"schema": RUNTIME_SCHEMA, "ok": True, "runtime": stopped_runtime(cfg)}
|
|
278
|
+
status_code, parsed = tts_state.sidecar_request_detail(
|
|
279
|
+
live["base_url"],
|
|
280
|
+
"/v1/tts/unload",
|
|
281
|
+
method="POST",
|
|
282
|
+
key_file=live["key_file"],
|
|
283
|
+
payload={},
|
|
284
|
+
timeout=10.0,
|
|
285
|
+
)
|
|
286
|
+
if not (200 <= status_code < 300):
|
|
287
|
+
raise _sidecar_error(status_code, parsed, "failed to unload tts worker")
|
|
288
|
+
return {
|
|
289
|
+
"schema": RUNTIME_SCHEMA,
|
|
290
|
+
"ok": True,
|
|
291
|
+
"runtime": tts_state.probe_live_runtime(cfg, state_dir),
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
def stop(base_dir: str, *, state_dir: Path | None = None) -> TtsStopDocument:
|
|
296
|
+
"""Stop the local TTS sidecar cleanly."""
|
|
297
|
+
_ = base_dir
|
|
298
|
+
return tts_state.stop_sidecar(
|
|
299
|
+
state_dir,
|
|
300
|
+
http_timeout_s=SHUTDOWN_HTTP_TIMEOUT_S,
|
|
301
|
+
poll_s=SHUTDOWN_POLL_S,
|
|
302
|
+
grace_s=STOP_GRACE_S,
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
def stop_if_recorded(
|
|
307
|
+
state_dir: Path | None = None,
|
|
308
|
+
) -> tuple[Literal["none", "stopped", "not-running", "failed"], str]:
|
|
309
|
+
"""Stop any TTS sidecar recorded under ``state_dir`` for ``stack down``."""
|
|
310
|
+
return tts_state.stop_sidecar_if_recorded(state_dir)
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
def voices(
|
|
314
|
+
model_id: str | None,
|
|
315
|
+
base_dir: str,
|
|
316
|
+
*,
|
|
317
|
+
state_dir: Path | None = None,
|
|
318
|
+
) -> TtsVoicesDocument:
|
|
319
|
+
"""List available voices for ``model_id`` (live worker if running, else catalog)."""
|
|
320
|
+
_ = base_dir
|
|
321
|
+
cfg = tts_state.load_config(state_dir)
|
|
322
|
+
target = model_id or cfg["model_id"]
|
|
323
|
+
try:
|
|
324
|
+
tts_catalog.tts_model(target)
|
|
325
|
+
except KeyError:
|
|
326
|
+
raise TtsError("MODEL_UNKNOWN", f"unknown tts model: {target}") from None
|
|
327
|
+
live = tts_state.probe_live_runtime(cfg, state_dir)
|
|
328
|
+
if live["running"] and live["base_url"]:
|
|
329
|
+
q = urllib.parse.urlencode({"model": target})
|
|
330
|
+
resp = tts_state.sidecar_request(
|
|
331
|
+
live["base_url"],
|
|
332
|
+
f"/v1/audio/voices?{q}",
|
|
333
|
+
key_file=live["key_file"],
|
|
334
|
+
timeout=5.0,
|
|
335
|
+
)
|
|
336
|
+
if resp is not None and isinstance(resp.get("voices"), list):
|
|
337
|
+
source: Literal["worker", "catalog"] = (
|
|
338
|
+
"worker" if resp.get("source") == "worker" else "catalog"
|
|
339
|
+
)
|
|
340
|
+
items = cast(list[TtsVoiceInfo], resp["voices"])
|
|
341
|
+
return {
|
|
342
|
+
"schema": VOICES_SCHEMA,
|
|
343
|
+
"ok": True,
|
|
344
|
+
"model": target,
|
|
345
|
+
"source": source,
|
|
346
|
+
"voices": items,
|
|
347
|
+
}
|
|
348
|
+
return {
|
|
349
|
+
"schema": VOICES_SCHEMA,
|
|
350
|
+
"ok": True,
|
|
351
|
+
"model": target,
|
|
352
|
+
"source": "catalog",
|
|
353
|
+
"voices": tts_catalog.static_voices(target),
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
def synthesize(
|
|
358
|
+
text: str,
|
|
359
|
+
out_path: str,
|
|
360
|
+
base_dir: str,
|
|
361
|
+
*,
|
|
362
|
+
model_id: str | None = None,
|
|
363
|
+
voice: str | None = None,
|
|
364
|
+
speed: float | None = None,
|
|
365
|
+
response_format: str | None = None,
|
|
366
|
+
instructions: str | None = None,
|
|
367
|
+
state_dir: Path | None = None,
|
|
368
|
+
) -> TtsSynthesizeDocument:
|
|
369
|
+
"""Synthesize speech via the loopback sidecar and write audio to ``out_path``."""
|
|
370
|
+
clean_text = validate_input_text(text)
|
|
371
|
+
cfg = tts_state.load_config(state_dir)
|
|
372
|
+
target_model = model_id or cfg["model_id"]
|
|
373
|
+
try:
|
|
374
|
+
spec = tts_catalog.tts_model(target_model)
|
|
375
|
+
except KeyError:
|
|
376
|
+
raise TtsError("MODEL_UNKNOWN", f"unknown tts model: {target_model}") from None
|
|
377
|
+
default_voice = cfg["voice"] if target_model == cfg["model_id"] else spec.default_voice
|
|
378
|
+
resolved_voice = validate_voice_id(voice) if voice is not None else default_voice
|
|
379
|
+
resolved_speed = validate_speed(speed) if speed is not None else cfg["speed"]
|
|
380
|
+
resolved_fmt: TtsResponseFormat = (
|
|
381
|
+
validate_response_format(response_format)
|
|
382
|
+
if response_format is not None
|
|
383
|
+
else cfg["response_format"]
|
|
384
|
+
)
|
|
385
|
+
rt = _ensure_running(base_dir, state_dir=state_dir)
|
|
386
|
+
token = tts_state.read_api_key(rt["key_file"])
|
|
387
|
+
headers = {"Content-Type": "application/json"}
|
|
388
|
+
if token:
|
|
389
|
+
headers["Authorization"] = f"Bearer {token}"
|
|
390
|
+
body: dict[str, object] = {
|
|
391
|
+
"model": target_model,
|
|
392
|
+
"input": clean_text,
|
|
393
|
+
"voice": resolved_voice,
|
|
394
|
+
"speed": resolved_speed,
|
|
395
|
+
"response_format": resolved_fmt,
|
|
396
|
+
"stream": False,
|
|
397
|
+
}
|
|
398
|
+
if instructions:
|
|
399
|
+
body["instructions"] = instructions
|
|
400
|
+
if cfg["language"] != "auto":
|
|
401
|
+
body["language"] = cfg["language"]
|
|
402
|
+
request = urllib.request.Request(
|
|
403
|
+
f"{str(rt['base_url']).rstrip('/')}/v1/audio/speech",
|
|
404
|
+
data=json.dumps(body, ensure_ascii=False).encode("utf-8"),
|
|
405
|
+
headers=headers,
|
|
406
|
+
method="POST",
|
|
407
|
+
)
|
|
408
|
+
opener = http_local.no_proxy_opener(allow_redirects=False)
|
|
409
|
+
try:
|
|
410
|
+
with opener.open(request, timeout=SYNTH_HTTP_TIMEOUT_S) as resp:
|
|
411
|
+
audio = resp.read()
|
|
412
|
+
duration = float(resp.headers.get("X-Audio-Seconds") or "0.0")
|
|
413
|
+
sample_rate = int(resp.headers.get("X-Audio-Sample-Rate") or "24000")
|
|
414
|
+
final_voice = str(resp.headers.get("X-TTS-Voice") or resolved_voice)
|
|
415
|
+
eff_raw = str(resp.headers.get("X-TTS-Effective-Device") or "cpu")
|
|
416
|
+
eff: EffectiveDevice = (
|
|
417
|
+
cast(EffectiveDevice, eff_raw) if eff_raw in EFFECTIVE_DEVICES else "cpu"
|
|
418
|
+
)
|
|
419
|
+
fb_raw = resp.headers.get("X-TTS-Fallback-Reason") or ""
|
|
420
|
+
fb: FallbackReason | None = (
|
|
421
|
+
cast(FallbackReason, fb_raw) if fb_raw in FALLBACK_REASONS else None
|
|
422
|
+
)
|
|
423
|
+
except urllib.error.HTTPError as exc:
|
|
424
|
+
raw_err = exc.read().decode("utf-8", errors="replace")
|
|
425
|
+
parsed: dict[str, Any] | None = None
|
|
426
|
+
with contextlib.suppress(ValueError):
|
|
427
|
+
obj = json.loads(raw_err)
|
|
428
|
+
if isinstance(obj, dict):
|
|
429
|
+
parsed = obj
|
|
430
|
+
raise _sidecar_error(exc.code, parsed, f"synthesis failed with HTTP {exc.code}") from None
|
|
431
|
+
except (urllib.error.URLError, http.client.HTTPException, OSError, ValueError) as exc:
|
|
432
|
+
raise TtsError("RUNTIME_ERROR", f"synthesis request failed: {exc}", failed=True) from None
|
|
433
|
+
|
|
434
|
+
dest = Path(os.path.expanduser(out_path))
|
|
435
|
+
dest.parent.mkdir(parents=True, exist_ok=True)
|
|
436
|
+
tmp = dest.with_name(dest.name + ".tmp")
|
|
437
|
+
tmp.write_bytes(audio)
|
|
438
|
+
os.replace(tmp, dest)
|
|
439
|
+
return {
|
|
440
|
+
"schema": SYNTHESIZE_SCHEMA,
|
|
441
|
+
"ok": True,
|
|
442
|
+
"model": target_model,
|
|
443
|
+
"voice": final_voice,
|
|
444
|
+
"path": str(dest),
|
|
445
|
+
"response_format": resolved_fmt,
|
|
446
|
+
"bytes": len(audio),
|
|
447
|
+
"duration_seconds": round(duration, 3),
|
|
448
|
+
"sample_rate": sample_rate,
|
|
449
|
+
"effective_device": eff,
|
|
450
|
+
"fallback_reason": fb,
|
|
451
|
+
}
|