<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Li Chi Hsiao on Medium]]></title>
        <description><![CDATA[Stories by Li Chi Hsiao on Medium]]></description>
        <link>https://medium.com/@lichihsiao?source=rss-4e21e5e68bb2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*O6E92D-TazVI7_0O.</url>
            <title>Stories by Li Chi Hsiao on Medium</title>
            <link>https://medium.com/@lichihsiao?source=rss-4e21e5e68bb2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 17:43:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lichihsiao/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[利用Azure Container 創建一個Web app!]]></title>
            <link>https://medium.com/@lichihsiao/%E5%88%A9%E7%94%A8azure-container-%E5%89%B5%E5%BB%BA%E4%B8%80%E5%80%8Bweb-app-a13884416de?source=rss-4e21e5e68bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a13884416de</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Li Chi Hsiao]]></dc:creator>
            <pubDate>Tue, 17 Jul 2018 09:27:32 GMT</pubDate>
            <atom:updated>2018-07-17T15:57:28.765Z</atom:updated>
            <content:encoded><![CDATA[<p>＝以下黑體字皆為使用者自訂＝</p><p>0. 先在網頁登入Azure</p><ol><li>安裝Azure CLI 2.0<br>先在網頁登入Azure</li></ol><pre># Install<br>$ brew update &amp;&amp; brew install azure-cli</pre><pre># Login<br>$ az login</pre><p>2. 建立一個Resource Group儲存你的資料</p><pre>$ az group create --name <strong>myResourceGroup</strong> --location &quot;West Europe&quot;</pre><p>3. 建立一個Container Registry</p><pre>$ az acr create --name <strong>&lt;registry_name&gt;</strong> --resource-group <strong>myResourceGroup</strong> --location &quot;West Europe&quot; --sku Basic</pre><p>4. 增加管理人與得到金鑰</p><pre>$ az acr update --name <strong>&lt;registry_name&gt;</strong> --admin-enabled true <br>$ az acr credential show -n <strong>&lt;registry_name&gt;</strong></pre><p>在這她會出現一組JSON檔：</p><pre>{<br>   &quot;passwords&quot;: [     <br>{<br>       &quot;name&quot;: &quot;password&quot;,<br>       &quot;value&quot;: &quot;&lt;registry_password1&gt;&quot;     <br>},{<br>       &quot;name&quot;: &quot;password2&quot;,<br>       &quot;value&quot;: &quot;&lt;registry_password2&gt;&quot;     <br>}],<br>   &quot;username&quot;: &quot;&lt;registry_name&gt;&quot; <br>}</pre><p>5. 登入Azure Container Registry 並上傳Docker Image檔</p><pre>$ docker login <strong>&lt;registry_name&gt;</strong>.azurecr.io -u &lt;registry_name&gt;</pre><pre>#這時他會要你輸入密碼，密碼為上方&lt;registry_password1&gt;</pre><pre>$ docker tag docker-name <strong>&lt;registry_name&gt;</strong>.azurecr.io/<strong>&lt;docker-name&gt;</strong> <br>$ docker push <strong>&lt;registry_name&gt;</strong>.azurecr.io/<strong>&lt;docker-name&gt;</strong></pre><p>6. 建立一個 App Service Plan</p><pre>$ az appservice plan create --name <strong>myAppServicePlan</strong> --resource-group <strong>myResourceGroup</strong> --sku S1 --is-linux</pre><p>7. 建立Web App</p><pre>$ az webapp create --name <strong>&lt;app_name&gt;</strong> --resource-group <strong>myResourceGroup</strong> --plan <strong>myAppServicePlan</strong> --deployment-container-image-name &quot;<strong>&lt;registry_name&gt;</strong>.azurecr.io/<strong>&lt;docker-name&gt;</strong>&quot;</pre><p>8. 連接 Web App 與 Container Registry</p><pre>$ az webapp config container set --resource-group <strong>myResourceGroup</strong> --name <strong>&lt;app_name&gt;</strong> --docker-registry-server-user &quot;<strong>&lt;registry_name&gt;</strong>&quot; --docker-registry-server-password &quot;&lt;registry_password1&gt;&quot; --docker-registry-server-url &quot;https://<strong>&lt;registry_name&gt;</strong>.azurecr.io&quot;</pre><p>9. 重新開啟 Web App</p><pre>az webapp restart --resource-group <strong>myResourceGroup</strong> --name <strong>&lt;app_name&gt;</strong></pre><p>10. 上網頁看看吧！</p><pre>http://<strong>&lt;app_name&gt;</strong>.azurewebsites.net</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a13884416de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MaryTTS Voice import in MAC OSX]]></title>
            <link>https://medium.com/@lichihsiao/marytts-voice-import-in-mac-osx-d2e8bd8f1b0a?source=rss-4e21e5e68bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2e8bd8f1b0a</guid>
            <category><![CDATA[os-x]]></category>
            <dc:creator><![CDATA[Li Chi Hsiao]]></dc:creator>
            <pubDate>Fri, 01 Jun 2018 10:11:44 GMT</pubDate>
            <atom:updated>2018-06-01T10:11:44.258Z</atom:updated>
            <content:encoded><![CDATA[<h3>事前準備</h3><ul><li>下載Java JDK 與Java JRE 並設置環境變數</li><li>利用brew下載Maven</li><li>進入MaryTTS 5.x資料夾：</li></ul><pre>mvn install</pre><p>開啟MaryTTS Server</p><blockquote>進入 marytts-5.x/target/marytts-5.x/bin<br>執行marytts-server<br>執行marytts-client</blockquote><ul><li>安裝Praat<br>-&gt; 到<a href="http://www.fon.hum.uva.nl/praat/">http://www.fon.hum.uva.nl/praat/</a>下載最新版本，拖曳至/Application<br>-&gt; 測試command line執行</li></ul><pre>/Applications/Praat.app/Contents/MacOS/Praat --run</pre><ul><li>安裝Speech Tools</li></ul><pre>brew install speech-tools</pre><ul><li>安裝EHMM，到<a href="http://www.cstr.ed.ac.uk/projects/festival/download.html">這裏</a>下載festival</li></ul><pre>#將資料夾放入Project根目錄中，進入資料夾<br>cd festival<br>./configure<br>make</pre><ul><li>到<a href="https://github.com/marytts/marytts/releases">這裡</a>下載marytts-build-5.2跟marytts-5.2</li></ul><h3>開始安裝</h3><ul><li>開啟MaryTTS Server</li></ul><p>- 進入marytts-5.2/bin/，雙擊marytts-server，，此時Terminal會出現：</p><pre>MARY server 5.2 starting as a HTTP server... started in 4.285 s on port 59125</pre><ul><li>開啟Voice Import Tools GUI</li></ul><pre>cd /path/to/marytts-builder-5.2/bin/<br>sh voiceimport.sh</pre><ul><li>先選取你準備的聲音所在的資料夾，沒有的話<a href="http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_slt_arctic-0.95-release.tar.bz2">來此</a>下載</li></ul><pre>create a folder named myvoice<br>#此時你的聲音路徑便是myvoice<br>copy or move cmu_us_slt_arctic/wav to myvoice/wav<br>copy or move cmu_us_slt_arctic/etc/txt.done.data to myvoice/txt.done.data.</pre><ul><li>設定路徑：</li></ul><pre>#比較重要的有<br>EHMMLabeler.ehmmDir: /path/to/ehmm<br>db.estDir: /path/to/Festival/speech_tools<br>PraatPitchMarkerCommand: /Applications/Praat.app/Contents/MacOS/Praat --run<br>路徑最後不用加“/”，不然到時候有子路徑的話會重複到</pre><ul><li>照著上面的流程一個一個勾選然後debug愉快！</li></ul><p>其中幾點注意：<br>- 我們已經跑了EHMMLabeler 就不需要跑 HTKLabeler了<br>- 如果音檔是用Redstart錄製就不需要跑Mary2FestvoxTranscripts<br>- 如果我們錄音是Festvox format（即範例的txt.done.dat）必需要跑Festvox2MaryTranscripts</p><p>Reference:</p><p><a href="https://github.com/marytts/marytts/wiki/VoiceImportToolsTutorial">marytts/marytts</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2e8bd8f1b0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[（備份）在Raspberry Pi用Supercollider]]></title>
            <link>https://medium.com/@lichihsiao/%E5%82%99%E4%BB%BD-%E5%9C%A8raspberry-pi%E7%94%A8supercollider-a9acd213ece6?source=rss-4e21e5e68bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9acd213ece6</guid>
            <category><![CDATA[supercollider]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Li Chi Hsiao]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 10:18:03 GMT</pubDate>
            <atom:updated>2018-02-09T10:18:03.159Z</atom:updated>
            <content:encoded><![CDATA[<p>用得我每天幹幹叫<br>所以一定要記下來。</p><ul><li>Supercollider在PRi上分為有IDE及沒IDE兩種。沒IDE的在Jessie Lite的環境內用，而有IDE的則是Jessie with Pixel(桌面版本)。這次記錄的是桌面版本。下載地點與方法在這：https://www.raspberrypi.org/downloads/raspbian/</li><li>下載完後，因為2016年11月後的RPi全都將ssh預設為關閉，所以必須找個螢幕和鍵盤把它們打開。打開方法：</li></ul><pre>$ sudo raspi-config</pre><p>選取Interfacing options<br>選取ssh<br>選取Enable or disable ssh server然後按Enter就好囉！<br>（這時候也可以順便改密碼）</p><ul><li>更新工作環境，下載Library打開自家電腦Terminal</li></ul><pre>$ ssh pi@raspberrypi<br>$ sudo apt-get update<br>$ sudo apt-get upgrade<br>$ sudo apt-get install alsa-base libicu-dev libasound2-dev libsamplerate0-dev libsndfile1-dev libreadline-dev libxt-dev libudev-dev libavahi-client-dev libfftw3-dev cmake git gcc-4.8 g++-4.8</pre><ul><li>下載並安裝Supercollider</li></ul><pre>$ git clone –recursive git://github.com/supercollider/supercollider –depth 1<br>$ cd supercollider<br>$ git submodule init &amp;&amp; git submodule update<br>$ mkdir build &amp;&amp; cd build<br>$ export CC=/usr/bin/gcc-4.8 #here temporarily use the older gcc-4.8<br>$ export CXX=/usr/bin/g++-4.8<br>$ cmake -L -DCMAKE_BUILD_TYPE=”Release” -DBUILD_TESTING=OFF -DSSE=OFF -DSSE2=OFF -DSUPERNOVA=OFF -DNATIVE=OFF -DSC_WII=ON -DSC_IDE=ON -DSC_QT=ON -DSC_ED=OFF -DSC_EL=OFF -DSC_VIM=OFF ..<br>$ make -j 4<br>$ sudo make install<br>$ sudo ldconfig<br>$ cd ../..<br>$ rm -rf supercollider</pre><ul><li>測試Jack&amp;SCIDE</li></ul><pre>$ qjackctl <br>  setup/interface選擇需要的USB Soundcard</pre><p>打開另外一個Terminal</p><pre>$ scide (開啟SCIDE)<br>$scide -style=gtkrc</pre><p>來源網站及相關資料：<br><a href="http://supercollider.github.io/development/building-raspberrypi.html">http://supercollider.github.io/development/building-raspberrypi.html</a><br><a href="https://github.com/iani/RPI-first-steps/blob/master/README.org">https://github.com/iani/RPI-first-steps/blob/master/README.org</a><br><a href="http://www.penguinproducer.com/Blog/2011/11/using-multiple-devices-with-jack/">http://www.penguinproducer.com/Blog/2011/11/using-multiple-devices-with-jack/</a><br><a href="http://sam.aaron.name/2012/11/02/supercollider-on-pi.html">http://sam.aaron.name/2012/11/02/supercollider-on-pi.html</a><br><a href="http://alsa.opensrc.org/Jack_and_Loopback_device_as_Alsa-to-Jack_bridge#The_Jack_Bridge">http://alsa.opensrc.org/Jack_and_Loopback_device_as_Alsa-to-Jack_bridge#The_Jack_Bridge</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9acd213ece6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mac OS 10.11 利用pyenv安裝caffe(CPU only)]]></title>
            <link>https://medium.com/@lichihsiao/mac-os-10-11-%E5%88%A9%E7%94%A8pyenv%E5%AE%89%E8%A3%9Dcaffe-cpu-only-536ef1b53b7f?source=rss-4e21e5e68bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/536ef1b53b7f</guid>
            <dc:creator><![CDATA[Li Chi Hsiao]]></dc:creator>
            <pubDate>Tue, 28 Nov 2017 19:53:00 GMT</pubDate>
            <atom:updated>2017-11-28T19:53:00.380Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>安裝Pyenv</strong></h3><pre>$ brew update<br>$ brew install pyenv<br>$ env PYTHON_CONFIGURE_OPTS=” — enable-framework” pyenv install 2.7.14</pre><h4>設定環境變數</h4><pre>nano ~/.bash_profile</pre><pre>#把下面這行放進去<br>export PYENV_ROOT=&quot;$HOME/.pyenv&quot;<br>export PATH=&quot;$PYENV_ROOT/bin:$PATH&quot;<br>eval &quot;$(pyenv init -)&quot;</pre><h3>安裝Caffe</h3><pre>$ git clone <a href="https://github.com/BVLC/caffe.git">https://github.com/BVLC/caffe.git</a><br>$ mkdir caffe</pre><pre># 設置區域python<br>$ pyenv local 2.7.14</pre><h3>安裝dependencies</h3><pre>$ brew install -vd snappy leveldb gflags glog szip lmdb</pre><pre># need the homebrew science source for OpenCV and hdf5<br>$ brew tap homebrew/science<br>$ brew install hdf5 opencv</pre><pre># with Python pycaffe needs dependencies built from source<br>$ brew install --build-from-source --with-python -vd protobuf<br>$ brew install --build-from-source -vd boost boost-python</pre><h3>編輯Caffe</h3><pre>$ cp Makefile.config.example Makefile.config</pre><h4>打開Makefile.config檔案，修改下列地方</h4><p>7~8行，CPU計算模式打開</p><pre># CPU-only switch (uncomment to build without GPU support).<br>CPU_ONLY := 1</pre><p>20~21行，如果OpenCV版本是3.x，把#拿掉</p><pre># opencv版本查詢： $ brew info opencv<br># Uncomment if you&#39;re using OpenCV 3<br>OPENCV_VERSION := 3</pre><p>67~69行</p><pre># We need to be able to find Python.h and numpy/arrayobject.h.<br>PYTHON_INCLUDE := $(shell python-config --prefix)/include/python2.7 \<br>  這裡貼上numpy/arrayobject.h所在的資料夾</pre><pre>#numpy/arrayobject.h 路徑查詢<br>$ python<br>&gt;&gt;&gt;import numpy as np <br>&gt;&gt;&gt;np.get_include()</pre><p>82~83行</p><pre># We need to be able to find libpythonX.X.so or .dylib.<br>PYTHON_LIB := $(shell python-config --prefix)/lib</pre><h3>Compilation</h3><pre>make all<br>make test<br>make runtest</pre><pre>make pycaffe<br>make distribution</pre><h3>加入環境變數</h3><pre>nano ~/.bash_profile</pre><pre>#把下面這行放進去<br>export PYTHONPATH=/你放caffe的資料夾/caffe/python/:$PYTHONPATH</pre><h3>測試</h3><pre>python -c &quot;import caffe&quot;<br>#沒跑出錯誤訊息代表安裝完成!</pre><h4>一些錯誤訊息與解決方法</h4><p>ImportError: No module named skimage</p><pre>pip install scikit-image</pre><p>ImportError: No module named pydot</p><pre># graphviz不能用pip安裝，不然會跑出錯誤訊息Exception: “dot” not found in path.</pre><pre>$ brew install graphviz<br>$ pip install pydot</pre><p>比較麻煩的是最後測試時出現的錯誤訊息<br>Segmentation fault: 11<br>要回去確認Makefile.config所有的路徑是否都在同一個python版本下<br>我是一直找不到libpython2.7.dylib最後才找到<a href="https://github.com/pyenv/pyenv/wiki#how-to-build-cpython-with-framework-support-on-os-x">這個</a></p><p>其他忘記記錄了想到再放進來</p><p>reference:<br><a href="https://github.com/pyenv/pyenv/wiki">https://github.com/pyenv/pyenv/wiki</a><br><a href="http://caffe.berkeleyvision.org/installation.html#compilation">http://caffe.berkeleyvision.org/installation.html#compilation</a><br><a href="https://mac-osx-for-newbie-book.kejyun.com/software/SoftwareManageHomebrew.html">https://mac-osx-for-newbie-book.kejyun.com/software/SoftwareManageHomebrew.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=536ef1b53b7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[在Android下測試Unity3D project]]></title>
            <link>https://medium.com/@lichihsiao/%E5%9C%A8android%E4%B8%8B%E6%B8%AC%E8%A9%A6unity-projec-15a6993d703a?source=rss-4e21e5e68bb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/15a6993d703a</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[unity3d]]></category>
            <dc:creator><![CDATA[Li Chi Hsiao]]></dc:creator>
            <pubDate>Mon, 13 Nov 2017 14:30:13 GMT</pubDate>
            <atom:updated>2017-11-15T11:51:48.958Z</atom:updated>
            <content:encoded><![CDATA[<p>最近在嘗試把unity放到Android下做測試中間遇到了幾個問題，剛好趁機記下來寫個筆記。</p><p>基本上就是按照官網上的步驟，中間有些問題或不清楚的地方稍微補充下<a href="https://unity3d.com/learn/tutorials/topics/mobile-touch/building-your-unity-game-android-device-testing">https://unity3d.com/learn/tutorials/topics/mobile-touch/building-your-unity-game-android-device-testin</a></p><ol><li>create a new 3D project</li><li>到window &gt;asset store 搜尋 Simple Mobile Placeholder下載並插入import</li><li>下載並設定JDK與SDK<br>JDK:到<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">這裡</a>下載並安裝<a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">Java SE 8u151/ 8u152</a>（我的情況是SE7 與SE9都過不了，網路上也有人有相同問題，如果有人也有JDK的問題的話可以試著換換版本）<br>SDK:到<a href="https://developer.android.com/studio/index.html">Android Development</a>直接滑到最下面Get just the command line tool下載Android SDK 與 SDK Manager，詳細情況請看<a href="https://developer.android.com/studio/command-line/sdkmanager.html">這裡</a>（也可以很偷懶的直接安裝Android studio）</li><li>利用SDK manager下載符合手機型號的Android版本</li><li>將手機設定成開發者模式：設定&gt;關於手機&gt;軟體版本，在軟體版本連續按七下，開發人員選單就會出現，接著進入開發人員選項，把USB偵錯打開，然後把USB接上電腦</li><li>之後到Unity，File&gt;Build setting&gt;Platform選取Android&gt;點選change platform</li><li>到Unity&gt;Preference&gt;External tools 查看路徑是否正確，以我的例子：<br>SDK: /Users/Mac/Library/Android/sdk<br>JDK: /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home<br>（注意是在Home裡面）</li><li>最後到Edit&gt;Project Setting&gt;Player，尋找Identification下的Bundle Identifier 改成：com.unity3d.你的專題名字<br>注意，Bundle Identifier在上架後是不能改的，詳細情況<a href="http://developer.android.com/reference/android/content/pm/PackageInfo.html">請看這</a></li><li>最後選取要測試的scene按下Build and Run就會在手機出現了！</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15a6993d703a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>