Skip to main content

Posts

text to speech with huggingface model

from phonemizer.backend.espeak.wrapper import EspeakWrapper EspeakWrapper.set_library('C:\Program Files\eSpeak NG\libespeak-ng.dll') from transformers import pipeline narrator = pipeline("text-to-speech", model="kakao-enterprise/vits-ljs") text = """Researchers at the Allen Institute for AI.""" narrated_text = narrator(text) from IPython.display import Audio as IPythonAudio IPythonAudio(narrated_text["audio"][0], rate=narrated_text["sampling_rate"])
Recent posts

How to disable the ugly media info overlay above Chrome when you adjust sound volume

世界名画系列,五星推荐

CCTV 世界名画系列-华丽的大师

美国出生的小孩,18岁以后自动确认国籍?错!旅行证只颁给未成年?错!

按照中国国籍法,如果父母是中国人,孩子就是中国人。但如果孩子在美国出生,按美国国籍法,则会自动获得美国国籍。这样就会形成国籍冲突的情况。这样的小孩回国,是需要在大使馆办理旅行证。在国内被认定为中国人,出国则需要在公安出入境部门办理出入境通行证。 这种情况的孩子,如果一直在国内读书,高中毕业申请国内高校留学生的“捷径”已被废除。就算可以申请,大概率也无法在中国大使馆办理留学签证。 这种情况的孩子,到了18岁成年,也没有什么神秘的自动获得或者失去某国国籍的说法。实际情况是,就算已经21岁,回国还是要办旅行证,而不是签证。这也澄清了另外一个神秘的说法 -- “旅行证只颁给未成年人”。现在看来,成年人也是可以办旅行证,或者必须办理旅行证回国。 类似这种国籍冲突的情况,觉得烦?那就必须正式申请退国籍,退哪一个按自己实际情况决定,但必须明确地退出一个。

My Stamps Collection Sold!

  I stared my stamp collections since I was still in primary school in 80's. It was definitely one of hottest habbies in China back then, Unfortunately, Philatelic Corporation got greedy and released stamps in crazy quantity and batch, but relatively low quality. Stamps became colorful wastes in late 90's. Philately itself also faded away like many other stuffs such as cassette, vidoe tapes. If you ask young kids what is philately, or even what is stamp, they might have no idea at all.  I went to the largest collections exchange market in Shanghai today, and sold almost all my collection o stamps. Interestingly not sure how the exchange system works in this market.. Stall owners ask if you have something want to sell when you pass by. They are eager to buy your collections at a fairly low price. They must have a way to sell those stamps.