<?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 Michael Fang on Medium]]></title>
        <description><![CDATA[Stories by Michael Fang on Medium]]></description>
        <link>https://medium.com/@michaelfangtw?source=rss-1f2a9ad97838------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-D-ocjV0VVLPPY3b.</url>
            <title>Stories by Michael Fang on Medium</title>
            <link>https://medium.com/@michaelfangtw?source=rss-1f2a9ad97838------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 11:23:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@michaelfangtw/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[吳小姐]]></title>
            <link>https://michaelfangtw.medium.com/%E5%90%B3%E5%B0%8F%E5%A7%90-9278396f14ad?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/9278396f14ad</guid>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Sun, 23 Aug 2026 15:22:41 GMT</pubDate>
            <atom:updated>2026-08-23T15:22:41.751Z</atom:updated>
            <content:encoded><![CDATA[<h3>《吳小姐》最終標註版歌詞</h3><p>作詞：宋冬野 作曲：宋冬野 (台灣風趣改編版 by Michael Fang)</p><p><strong>吳</strong>小姐，你從沒忘記你的微笑 就算你和我一樣 渴望著衰老</p><p><strong>吳</strong>小姐，你嘴角向下的時候很美 就像<strong>淡水河畔</strong> 清澈的水</p><p><strong>吳</strong>小姐，我也是個複雜的動物 嘴上一句帶過 心里卻一直重复</p><p><strong>吳</strong>小姐，<strong>西區的夜晚</strong>時間匆匆 陌生的人，請給我一支<strong>長壽</strong></p><p>所以那些可能都不是真的</p><p><strong>吳</strong>小姐 你才不是一個沒有故事的女同學 愛上一匹野馬 可我的家里沒有草原 這讓我感到絕望 <strong>吳</strong>小姐</p><p><strong>吳</strong>小姐，你<strong>喝完了酒</strong>，說起從前 你說前半生就這樣吧 還有明天</p><p><strong>吳</strong>小姐，你可知道我說夠了再見 在五月的早晨，終於丟失了睡眠</p><p>所以那些可能都不是真的</p><p><strong>吳</strong>小姐 你才不是一個沒有故事的女同學 愛上一匹野馬 可我的家里沒有草原 這讓我感到絕望 <strong>吳</strong>小姐</p><p>所以那些可能都會是真的 <strong>吳</strong>小姐 誰會不厭其煩的安慰那無知的少年 我想和你一樣 不顧那些所以</p><p>跟我走吧 <strong>吳</strong>小姐</p><p><strong>我們走吧</strong> <strong>吳</strong>小姐</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9278396f14ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI free課程]]></title>
            <link>https://michaelfangtw.medium.com/ai-free%E8%AA%B2%E7%A8%8B-bd3c7139eb09?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd3c7139eb09</guid>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 01:28:20 GMT</pubDate>
            <atom:updated>2026-07-25T01:28:20.496Z</atom:updated>
            <content:encoded><![CDATA[<p>claude code action</p><p><a href="https://anthropic.skilljar.com/claude-code-in-action">Claude Code in Action</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd3c7139eb09" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Design free resource]]></title>
            <link>https://michaelfangtw.medium.com/free-chat-gpt-images-prompt-62c3f4cae6c6?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/62c3f4cae6c6</guid>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 00:37:50 GMT</pubDate>
            <atom:updated>2026-07-25T01:29:15.832Z</atom:updated>
            <content:encoded><![CDATA[<h3>free chat gpt images prompt</h3><p><a href="https://youmind.com/zh-CN/gpt-image-2-prompts">13000+ 免费 GPT Image 2 提示词大全 2026｜AI 生图 Prompt 模板与案例 — YouMind</a></p><h3>free ai design system</h3><p><a href="https://styles.refero.design/style/4fa67bd1-f01d-454a-b522-4a0359ff9815">Shop design system | Refero Styles</a></p><h3>AI創作系統</h3><p><a href="https://www.youtube.com/watch?v=AZA8OYGlEnE">Codex 保姆級完整教學：從 0 到 1 打造 AI 內容創作系統，選題、腳本、貼文一次跑完！</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62c3f4cae6c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[virtualbox] resize disk]]></title>
            <link>https://michaelfangtw.medium.com/virtualbox-resize-disk-aa07d1e83b9a?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa07d1e83b9a</guid>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 15:18:30 GMT</pubDate>
            <atom:updated>2025-02-10T15:18:30.757Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>VBoxManage modifymedium disk /path/to/your-disk.vdi --resize 80000</li><li>lsblk</li><li>sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv</li><li>sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv (ext4)</li><li>df -h</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa07d1e83b9a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[elk-docker install and tour]]></title>
            <link>https://michaelfangtw.medium.com/elk-docker-install-and-tour-8712ef9c4c58?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/8712ef9c4c58</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[elk]]></category>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Sun, 14 Jul 2024 14:48:55 GMT</pubDate>
            <atom:updated>2024-07-14T15:04:03.129Z</atom:updated>
            <content:encoded><![CDATA[<p>參考:<a href="https://www.youtube.com/watch?v=iWFasUQ1tNQ"><br>(15) Linux 教學 docker-elk-tutorial 7.6.0 — YouTube</a></p><pre>git clone https://github.com/twtrubiks/docker-elk-tutorial.git</pre><pre>cd docker-elk<br>docker-compose up -d</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8712ef9c4c58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mongodb docker 安裝及使用]]></title>
            <link>https://michaelfangtw.medium.com/mongodb-docker-%E5%AE%89%E8%A3%9D%E5%8F%8A%E4%BD%BF%E7%94%A8-d862798e16d0?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/d862798e16d0</guid>
            <category><![CDATA[mongo]]></category>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Fri, 12 Jul 2024 09:54:20 GMT</pubDate>
            <atom:updated>2024-07-13T02:47:32.150Z</atom:updated>
            <content:encoded><![CDATA[<p>docker-compose.yml</p><pre>version: &#39;3.1&#39;<br><br>services:<br>  mongo:<br>    image: mongo:latest<br>    container_name: mongo<br>    environment:<br>      MONGO_INITDB_ROOT_USERNAME: admin<br>      MONGO_INITDB_ROOT_PASSWORD: xxxx<br>    ports:<br>      - 27017:27017<br>    volumes:<br>      - ./mongo-data:/data/db</pre><p>docker-compose up -d</p><p>執行mongosh</p><pre>docker exec -it mongo mongosh -u admin -p xxxx- authenticationDatabase admin</pre><p><strong>顯示資料庫show dbs</strong></p><p>show dbs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*-ya8hp8HlHYHHaqa.png" /></figure><p><strong>建立資料庫use dbname</strong></p><p>use ctiportal #若不存在 會建立新db: ctiportal</p><h3><strong>新刪修查CRUD</strong></h3><p><strong>新增insertOne</strong><em><br>db.集合名稱.insertOne({文件})<br>db.Users.insertOne({userId:1,userName:’Michael’});</em></p><pre>ctiportal&gt; db.Users.insertOne({userId:1,userName:&#39;Michael&#39;});<br>{<br> acknowledged: true,<br> insertedId: ObjectId(&#39;6690f613972b1bfa89149f48&#39;)<br>}</pre><p><strong>顯示資料表show collections</strong><br>show collections</p><pre>ctiportal&gt; show collections<br>Users</pre><p><strong>資料多筆新增 insertMany</strong></p><p>db.Users.insertMany([集合,集合]);</p><pre>ctiportal&gt; db.Users.insertMany([{userId:1,userName:&#39;Jack&#39;},{userId:2,userName:&#39;Mary&#39;}]);<br>{<br>  acknowledged: true,<br>  insertedIds: {<br>    &#39;0&#39;: ObjectId(&#39;6690f7a7972b1bfa89149f4b&#39;),<br>    &#39;1&#39;: ObjectId(&#39;6690f7a7972b1bfa89149f4c&#39;)<br>  }<br>}</pre><p><strong>查詢資料find()</strong></p><p>db.Users.find();</p><pre>ctiportal&gt;  db.Users.find();<br>[<br>  {<br>    _id: ObjectId(&#39;6690f613972b1bfa89149f48&#39;),<br>    userId: 1,<br>    userName: &#39;Michael&#39;<br>  },<br>  {<br>    _id: ObjectId(&#39;6690f71c972b1bfa89149f49&#39;),<br>    userId: 2,<br>    birthday: 24.0952380952381,<br>    userName: &#39;Mike&#39;<br>  },<br>  {<br>    _id: ObjectId(&#39;6690f734972b1bfa89149f4a&#39;),<br>    userId: 2,<br>    birthday: &#39;1982/07/12&#39;,<br>    userName: &#39;Mike&#39;<br>  }<br>]</pre><p><strong>查詢條件find({條件})<br>db.Users.find({userName:’Mike’});</strong></p><pre>ctiportal&gt; db.Users.find({userName:&#39;Mike&#39;});<br>[<br>  {<br>    _id: ObjectId(&#39;6690f71c972b1bfa89149f49&#39;),<br>    userId: 2,<br>    birthday: 24.0952380952381,<br>    userName: &#39;Mike&#39;<br>  },<br>  {<br>    _id: ObjectId(&#39;6690f734972b1bfa89149f4a&#39;),<br>    userId: 2,<br>    birthday: &#39;1982/07/12&#39;,<br>    userName: &#39;Mike&#39;<br>  }<br>]<br>ctiportal&gt; </pre><p>日期欄位: ISODate(‘yyyy/MM/dd’);</p><pre>db.Users.insertOne({<br>  name: &quot;John&quot;,<br>  age: 30,<br>  city: &quot;New York&quot;,<br>  createdAt: ISODate(&quot;2024-07-12T12:00:00Z&quot;)<br>})</pre><p><strong>條件運算子 </strong><br>$eq $gt $lt …</p><pre>名称 说明<br>$eq 匹配等于指定值的值。<br>$gt 匹配大于指定值的值。<br>$gte 匹配大于等于指定值的值。<br>$in 匹配数组中指定的任何值。<br>$lt 匹配小于指定值的值。<br>$lte 匹配小于等于指定值的值。<br>$ne 匹配所有不等于指定值的值。<br>$nin 不匹配数组中指定的任何值。</pre><p><strong>查詢建立日期小於2022年</strong><br>Users.find({createdAt:{$gt: 時間 }})<br>時間: ISODate(‘2022–01–01’);</p><pre>db.Users.find({createdAt:{$gt:ISODate(&#39;2022-01-01&#39;)}});</pre><pre>ctiportal&gt; db.Users.find({createdAt:{$gt:ISODate(&#39;2022-01-01&#39;)}});<br>[<br>  {<br>    _id: ObjectId(&#39;6690f8fc972b1bfa89149f4d&#39;),<br>    name: &#39;John&#39;,<br>    age: 30,<br>    city: &#39;New York&#39;,<br>    createdAt: ISODate(&#39;2024-07-12T12:00:00.000Z&#39;)<br>  },<br>  {<br>    _id: ObjectId(&#39;6690f913972b1bfa89149f4e&#39;),<br>    name: &#39;George&#39;,<br>    age: 30,<br>    city: &#39;Taipei&#39;,<br>    createdAt: ISODate(&#39;2023-07-12T12:00:00.000Z&#39;)<br>  }<br>]</pre><p><strong>更改內容updateMany({條件},{$set:{更新內容}})</strong><br>db.Users.updateMany({userName:&#39;mike&#39;,{$set:{age:30}});</p><pre>ctiportal&gt; db.Users.updateMany({userName:&#39;Mike&#39;},{$set:{age:30}});<br>{<br>  acknowledged: true,<br>  insertedId: null,<br>  matchedCount: 2,<br>  modifiedCount: 2,<br>  upsertedCount: 0<br>}</pre><p><strong>查詢更新結果find({條件});</strong></p><pre>ctiportal&gt; db.Users.find({userName:&#39;Mike&#39;});<br>[<br>  {<br>    _id: ObjectId(&#39;6690f71c972b1bfa89149f49&#39;),<br>    userId: 2,<br>    birthday: 24.0952380952381,<br>    userName: &#39;Mike&#39;,<br>    age: 30<br>  },<br>  {<br>    _id: ObjectId(&#39;6690f734972b1bfa89149f4a&#39;),<br>    userId: 2,<br>    birthday: &#39;1982/07/12&#39;,<br>    userName: &#39;Mike&#39;,<br>    age: 30<br>  }<br>]<br>ctiportal&gt; </pre><p>刪除一筆deleteOne({條件});<br>刪除多筆deleteMany({條件});<br>刪除remove({條件});</p><pre>ctiportal&gt; db.Users.deleteOne({userName:&#39;Mike&#39;});<br>{ acknowledged: true, deletedCount: 1 }<br>ctiportal&gt; db.Users.deleteOne({userName:&#39;Mike&#39;});<br>{ acknowledged: true, deletedCount: 1 }<br>ctiportal&gt; db.Users.deleteOne({userName:&#39;Mike&#39;});<br>{ acknowledged: true, deletedCount: 0 }<br>ctiportal&gt; db.Users.deleteOne({userName:&#39;Mike&#39;});<br>{ acknowledged: true, deletedCount: 0 }</pre><pre>ctiportal&gt; db.Users.remove({});<br>{ acknowledged: true, deletedCount: 6 }</pre><h3>補充</h3><p><strong>版本查詢db.version();</strong><br>7.0.12</p><p>production指定版本</p><pre>version: &#39;3.1&#39;<br><br>services:<br>  mongo:<br>    image: mongo:7.0.12<br>    container_name: mongo<br>    environment:<br>      MONGO_INITDB_ROOT_USERNAME: admin<br>      MONGO_INITDB_ROOT_PASSWORD: xxxx<br>    ports:<br>      - 27017:27017<br>    volumes:<br>      - ./mongo-data:/data/db</pre><p><strong>建立登入帳號</strong></p><pre>use ctiportal<br>db.createUser({<br>  user: &quot;ap_mongo&quot;,<br>  pwd: &quot;09350935&quot;,<br>  roles: [{ role: &quot;readWrite&quot;, db: &quot;ctiportal&quot; }]<br>})</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d862798e16d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[let’s encrypt in nginx]]></title>
            <link>https://michaelfangtw.medium.com/lets-encrypt-in-nginx-02a9ca790830?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/02a9ca790830</guid>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[lets-encrypt]]></category>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Sun, 30 Jun 2024 15:21:53 GMT</pubDate>
            <atom:updated>2024-06-30T15:21:53.061Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>install certbot</strong></p><p>sudo apt update <br>sudo apt install certbot python3-certbot-nginx -y</p><p><strong>register domain</strong><br>sudo certbot — nginx — redirect -d funtech.one -d danwuart.me</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02a9ca790830" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[GCP] New VM ssh key can not login]]></title>
            <link>https://michaelfangtw.medium.com/gcp-new-vm-ssh-key-can-not-login-bd79016b20ca?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd79016b20ca</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Sun, 30 Jun 2024 13:25:23 GMT</pubDate>
            <atom:updated>2024-06-30T13:25:23.114Z</atom:updated>
            <content:encoded><![CDATA[<pre>ssh key 無法登入gcp</pre><pre>1.檢查/var/log/auth.log<br>有以下錯誤<br>signature algorithm ssh-rsa not in PubkeyAccectedAlogrithms<br><br>2.開啟  /etc/ssh/sshd_config<br>新增以下設定<br>#取消註解<br>PubkeyAuthentication yes<br>#新增<br>PubkeyAcceptedAlgorithms=+ssh-rsa<br><br>3.重啟服務<br>systemctl restart sshd</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd79016b20ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Asterisk mrcp module]]></title>
            <link>https://michaelfangtw.medium.com/install-asterisk-mrcp-module-86be11d353b9?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/86be11d353b9</guid>
            <category><![CDATA[mrcp]]></category>
            <category><![CDATA[unimrcp]]></category>
            <category><![CDATA[asterisk]]></category>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Sun, 30 Jun 2024 13:21:13 GMT</pubDate>
            <atom:updated>2024-06-30T14:37:02.439Z</atom:updated>
            <content:encoded><![CDATA[<h3>[asterisk] Install Asterisk mrcp module</h3><h3>安裝asterisk unimrcp module</h3><h3>for freepbx iso版</h3><p><strong>1.安裝unimrcp client</strong> 參考: <a href="https://www.unimrcp.org/manuals/pdf/RPMInstallationManual.pdf">RPM Installation Manual (unimrcp.org)</a></p><p>1.1修改設定 yum設定 vi /etc/yum.repos.d/unimrcp.repo</p><pre>[unimrcp]<br>name=UniMRCP Packages for Red Hat / Cent OS-$releasever $basearch<br>baseurl=https://michaelfang:xxxxxxxx@unimrcp.org/repo/yum/main/rhel7/$basearch/<br>enabled=1<br>sslverify=1<br>gpgcheck=1<br>gpgkey=https://unimrcp.org/keys/unimrcp-gpg-key.public</pre><p>1.2 安裝unimrcp-client rm -rf /var/run/yum.pid yum repolist unimrcp yum — disablerepo=”*” — enablerepo=”unimrcp” list available yum install unimrcp-client</p><p><strong>2.安裝unimrcp for asterisk</strong> 參考 <a href="https://www.unimrcp.org/manuals/pdf/AsteriskRPMInstallationManual.pdf">Asterisk Installation Manual (unimrcp.org)</a></p><p>2.1 修改設定 yum設定 vi /etc/yum.repos.d/unimrcp.repo</p><p>[unimrcp-asterisk-16] name=UniMRCP Asterisk-16 Packages for Red Hat / Cent OS-$releasever $basearch baseurl=https://michaelfang:xxxxxxxx@unimrcp.org/repo/yum/asterisk-16/rhel7/$basearch/ enabled=1 sslverify=1 gpgcheck=1 gpgkey=https://unimrcp.org/keys/unimrcp-gpg-key.public</p><p>註:官網範例rpm目錄打錯 應該為asterisk-16 <a href="https://unimrcp.org/repo/yum/asterisk-16/rhel7/x86_64/rpms/">Index of /repo/yum/asterisk-16/rhel7/x86_64/rpms (unimrcp.org)</a></p><p>2.2安裝 yum --disablerepo=&quot;*&quot; --enablerepo=&quot;unimrcp, unimrcp-asterisk-16&quot; list available yum install asterisk-app-unimrcp yum install asterisk-res-speech-unimrcp</p><p>2.3 確認有以下檔案安裝 <strong>app_unimrcp.so res_speech_unimrcp.so</strong></p><p>sudo find / -name res_speech_unimrcp.so</p><p>/usr/lib64/asterisk/modules/res_speech_unimrcp.so</p><p>sudo find / -name app_unimrcp.so</p><p>/usr/lib64/asterisk/modules/app_unimrcp.so</p><p>3.設定unimrcpclient.xml及load module 參考: <a href="https://www.unimrcp.org/manuals/pdf/AsteriskUsageManual.pdf">Installation Manual (unimrcp.org)</a></p><p>3.1 unimrcpclient 設定檔 mkdir /usr/local/unimrcp vi /usr/local/unimrcp/unimrcpclient.xml</p><p>sample :<a href="https://unimrcp.org/data/deployment/client/deployment2/unimrcpclient.xml">unimrcp.org/data/deployment/client/deployment2/unimrcpclient.xml</a></p><p>註: 沒有此xml <strong>app_unimrcp.so會無法載入</strong></p><pre>&lt;!--  UniMRCP client document  --&gt;<br>&lt;unimrcpclient<br>xmlns:xsi=&quot;&lt;http://www.w3.org/2001/XMLSchema-instance&gt;&quot; xsi:noNamespaceSchemaLocation=&quot;unimrcpclient.xsd&quot; version=&quot;1.0&quot;&gt;<br>&lt;properties&gt;<br>&lt;!--  By default, network interface (IP address) to bind to will be implicitly identified.<br>Alternatively, it can be explicitly set.<br>--&gt;<br>&lt;ip&gt;10.128.0.58&lt;/ip&gt;<br>&lt;!--  &lt;ext-ip&gt;a.b.c.d&lt;/ext-ip&gt;  --&gt;<br>&lt;server-ip&gt;10.128.0.56&lt;/server-ip&gt;<br>&lt;/properties&gt;<br>&lt;components&gt;<br>&lt;!--  Factory of MRCP resources  --&gt;<br>&lt;resource-factory&gt;<br>&lt;resource id=&quot;speechsynth&quot; enable=&quot;true&quot;/&gt;<br>&lt;resource id=&quot;speechrecog&quot; enable=&quot;true&quot;/&gt;<br>&lt;resource id=&quot;recorder&quot; enable=&quot;true&quot;/&gt;<br>&lt;/resource-factory&gt;<br>&lt;!--  SofiaSIP MRCPv2 signaling agent  --&gt;<br>&lt;sip-uac id=&quot;SIP-Agent-1&quot; type=&quot;SofiaSIP&quot;&gt;<br>&lt;!--  By default, &quot;ip&quot; and &quot;ext-ip&quot; addresses set in the properties will be used.<br>They still can be explicitly specified (overriden) here.<br>--&gt;<br>&lt;!--  &lt;sip-ip&gt;10.10.0.1&lt;/sip-ip&gt;  --&gt;<br>&lt;!--  &lt;sip-ext-ip&gt;a.b.c.d&lt;/sip-ext-ip&gt;  --&gt;<br>&lt;sip-port&gt;8062&lt;/sip-port&gt;<br>&lt;sip-transport&gt;udp&lt;/sip-transport&gt;<br>&lt;ua-name&gt;UniMRCP SofiaSIP&lt;/ua-name&gt;<br>&lt;sdp-origin&gt;UniMRCPClient&lt;/sdp-origin&gt;<br>&lt;!--  &lt;sip-t1&gt;500&lt;/sip-t1&gt;  --&gt;<br>&lt;!--  &lt;sip-t2&gt;4000&lt;/sip-t2&gt;  --&gt;<br>&lt;!--  &lt;sip-t4&gt;4000&lt;/sip-t4&gt;  --&gt;<br>&lt;!--  &lt;sip-t1x64&gt;32000&lt;/sip-t1x64&gt;  --&gt;<br>&lt;/sip-uac&gt;<br>&lt;!--  MRCPv2 connection agent  --&gt;<br>&lt;mrcpv2-uac id=&quot;MRCPv2-Agent-1&quot;&gt;<br>&lt;max-connection-count&gt;100&lt;/max-connection-count&gt;<br>&lt;offer-new-connection&gt;false&lt;/offer-new-connection&gt;<br>&lt;rx-buffer-size&gt;1024&lt;/rx-buffer-size&gt;<br>&lt;tx-buffer-size&gt;1024&lt;/tx-buffer-size&gt;<br>&lt;!--  &lt;request-timeout&gt;5000&lt;/request-timeout&gt;  --&gt;<br>&lt;/mrcpv2-uac&gt;<br>&lt;!--  Media processing engine  --&gt;<br>&lt;media-engine id=&quot;Media-Engine-1&quot;&gt;<br>&lt;realtime-rate&gt;1&lt;/realtime-rate&gt;<br>&lt;/media-engine&gt;<br>&lt;!--  Factory of RTP terminations  --&gt;<br>&lt;rtp-factory id=&quot;RTP-Factory-1&quot;&gt;<br>&lt;!--  By default, &quot;ip&quot; and &quot;ext-ip&quot; addresses set in the properties will be used.<br>They still can be explicitly specified (overriden) here.<br>--&gt;<br>&lt;!--  &lt;rtp-ip&gt;10.10.0.1&lt;/rtp-ip&gt;  --&gt;<br>&lt;!--  &lt;rtp-ext-ip&gt;a.b.c.d&lt;/rtp-ext-ip&gt;  --&gt;<br>&lt;rtp-port-min&gt;4000&lt;/rtp-port-min&gt;<br>&lt;rtp-port-max&gt;5000&lt;/rtp-port-max&gt;<br>&lt;/rtp-factory&gt;<br>&lt;/components&gt;<br>&lt;settings&gt;<br>&lt;!--  SIP MRCPv2 settings  --&gt;<br>&lt;sip-settings id=&quot;UniMRCP-SIP-Settings&quot;&gt;<br>&lt;!--  Server address should be explicitly specified, it defaults to &quot;ip&quot; address set in the properties.  --&gt;<br>&lt;server-ip&gt;10.128.0.56&lt;/server-ip&gt;<br>&lt;server-port&gt;8070&lt;/server-port&gt;<br>&lt;!--  &lt;force-destination&gt;true&lt;/force-destination&gt;  --&gt;<br>&lt;/sip-settings&gt;<br>&lt;!--  common (default) RTP/RTCP settings  --&gt;<br>&lt;rtp-settings id=&quot;RTP-Settings-1&quot;&gt;<br>&lt;jitter-buffer&gt;<br>&lt;playout-delay&gt;50&lt;/playout-delay&gt;<br>&lt;max-playout-delay&gt;200&lt;/max-playout-delay&gt;<br>&lt;/jitter-buffer&gt;<br>&lt;ptime&gt;20&lt;/ptime&gt;<br>&lt;codecs&gt;PCMU PCMA L16/96/8000 telephone-event/101/8000&lt;/codecs&gt;<br>&lt;!--  &lt;codecs&gt;PCMU PCMA L16/96/8000 PCMU/97/16000 PCMA/98/16000 L16/99/16000&lt;/codecs&gt;  --&gt;<br>&lt;!--  enable/disable RTCP support  --&gt;<br>&lt;rtcp enable=&quot;false&quot;&gt;<br>&lt;!--  RTCP BYE policies (RTCP must be enabled first)<br>0 - disable RTCP BYE<br>1 - send RTCP BYE at the end of session<br>2 - send RTCP BYE also at the end of each talkspurt (input)<br>--&gt;<br>&lt;rtcp-bye&gt;1&lt;/rtcp-bye&gt;<br>&lt;!--  rtcp transmission interval in msec (set 0 to disable)  --&gt;<br>&lt;tx-interval&gt;5000&lt;/tx-interval&gt;<br>&lt;!--  period (timeout) to check for new rtcp messages in msec (set 0 to disable)  --&gt;<br>&lt;rx-resolution&gt;1000&lt;/rx-resolution&gt;<br>&lt;/rtcp&gt;<br>&lt;/rtp-settings&gt;<br>&lt;/settings&gt;<br>&lt;profiles&gt;<br>&lt;!--  UniMRCP MRCPv2 profile  --&gt;<br>&lt;mrcpv2-profile id=&quot;uni2&quot;&gt;<br>&lt;sip-uac&gt;SIP-Agent-1&lt;/sip-uac&gt;<br>&lt;mrcpv2-uac&gt;MRCPv2-Agent-1&lt;/mrcpv2-uac&gt;<br>&lt;media-engine&gt;Media-Engine-1&lt;/media-engine&gt;<br>&lt;rtp-factory&gt;RTP-Factory-1&lt;/rtp-factory&gt;<br>&lt;sip-settings&gt;UniMRCP-SIP-Settings&lt;/sip-settings&gt;<br>&lt;rtp-settings&gt;RTP-Settings-1&lt;/rtp-settings&gt;<br>&lt;/mrcpv2-profile&gt;<br>&lt;!--  more profiles might be added here  --&gt;<br>&lt;/profiles&gt;<br>&lt;/unimrcpclient&gt;</pre><p>3.2 載入 asterisk modules</p><pre>sudo asterisk -rx &quot;module load **app_unimrcp.so&quot;**<br>sudo asterisk -rx &quot;module load **res_speech_unimrcp.so&quot;**<br>sudo asterisk -rx &quot;module show like **unimrcp&quot;**</pre><p>[root@freepbx1-mrcp local]# sudo asterisk -rx “module show like unimrcp” Module Description Use Count Status Support Level app_unimrcp.so MRCP suite of applications 0 Running unknown res_speech_unimrcp.so UniMRCP Speech Engine 0 Running core 2 modules loaded [root@freepbx1-mrcp local]#</p><p>3.3 mrcp設定 vi /etc/asterisk/mrcp.conf</p><pre>;<br>; The configuration file of the app_unimrcp module.<br>;<br>; The configuration consists of general settings and MRCP profiles. One or more<br>; MRCP profiles can be specified. The default configuration file includes MRCP<br>; v2 and v1 profiles for:<br>;<br>; - UniMRCP Server (UMS)<br>; - Nuance Speech Server (NSS)<br>;<br>; Notes:<br>; - the default value of the parameter(s) server-ip must be replaced with the <br>;   IP address of the corresponding MRCP server<br>; - the default value of the parameters client-ip and rtp-ip must be<br>;   replaced with the IP address of the MRCP client (Asterisk)<br>;</pre><pre>;<br>; General settings<br>;<br>[general]<br>; Default ASR and TTS profiles.<br>default-asr-profile = ums2<br>default-tts-profile = ums2<br>; UniMRCP logging level to appear in Asterisk logs.  Options are:<br>; EMERGENCY|ALERT|CRITICAL|ERROR|WARNING|NOTICE|INFO|DEBUG --&gt;<br>log-level = DEBUG<br>max-connection-count = 100<br>max-shared-count = 100<br>offer-new-connection = 1<br>; rx-buffer-size = 1024<br>; tx-buffer-size = 1024<br>; request-timeout = 5000<br>; speech-channel-timeout = 30000</pre><pre>;<br>; Profile for UniMRCP Server [MRCPv2]<br>;<br>[ums2]<br>; MRCP settings<br>version = 2<br>;<br>; SIP settings<br>server-ip = 10.128.0.56<br>server-port = 8060<br>; SIP user agent<br>client-ip = 10.128.0.58<br>client-port = 25097<br>sip-transport = udp<br>;<br>; RTP factory<br>rtp-ip = 10.0.0.1<br>rtp-port-min = 28000<br>rtp-port-max = 29000<br>;<br>; Jitter buffer settings<br>playout-delay = 50<br>max-playout-delay = 200<br>; RTP settings<br>ptime = 20<br>codecs = PCMU PCMA L16/96/8000 telephone-event/101/8000<br>; RTCP settings<br>rtcp = 0</pre><pre>;<br>; Profile for UniMRCP Server [MRCPv1]<br>;<br>[ums1]<br>; MRCP settings<br>version = 1<br>;<br>; RTSP settings<br>server-ip = 10.128.0.56<br>server-port = 1554<br>resource-location = media<br>speechsynth = speechsynthesizer<br>speechrecog = speechrecognizer<br>;<br>; RTP factory<br>rtp-ip = 10.128.0.58<br>rtp-port-min = 27000<br>rtp-port-max = 28000<br>;<br>; Jitter buffer settings<br>playout-delay = 50<br>max-playout-delay = 200<br>; RTP settings<br>ptime = 20<br>codecs = PCMU PCMA L16/96/8000 telephone-event/101/8000<br>; RTCP settings<br>rtcp = 0</pre><p>Write dialplan 參考:<a href="https://www.unimrcp.org/manuals/html/AsteriskManual.html#_Toc424230586">Asterisk Manual (unimrcp.org)</a></p><p>[mrcp2-tts]</p><p>exten =&gt; s,1,Answer</p><p>same =&gt; n,MRCPSynth(Hello world!,p=default)</p><p>same =&gt; n,Verbose(1, ${SYNTHSTATUS})</p><p>same =&gt; n,Hangup</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86be11d353b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[衣服prompt for tensor.art]]></title>
            <link>https://michaelfangtw.medium.com/%E8%A1%A3%E6%9C%8Dprompt-0050df6ed1a9?source=rss-1f2a9ad97838------2</link>
            <guid isPermaLink="false">https://medium.com/p/0050df6ed1a9</guid>
            <dc:creator><![CDATA[Michael Fang]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 14:17:50 GMT</pubDate>
            <atom:updated>2024-06-14T14:18:37.313Z</atom:updated>
            <content:encoded><![CDATA[<h3>ai photographer</h3><p><a href="https://chatgpt.com/share/ad595c34-05b5-44d3-a9ab-d05b0f3dcf1b">ChatGPT</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0050df6ed1a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>