V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
这是一个专门讨论 idea 的地方。

每个人的时间,资源是有限的,有的时候你或许能够想到很多 idea,但是由于现实的限制,却并不是所有的 idea 都能够成为现实。

那这个时候,不妨可以把那些 idea 分享出来,启发别人。
Deeer
V2EX  ›  奇思妙想

mac 命令行唱歌🎤

  •  9
     
  •   Deeer · 2015-11-15 14:02:13 +08:00 · 11852 次点击
    这是一个创建于 3300 天前的主题,其中的信息可能已经有所发展或是发生改变。

    无聊的时候。。发现 mac say + 要说的话, mac 能帮你读出来

    然后室友用自带的小娜说了不同腔调的一句话(各国语言。。)

    在受到室友嘲讽之后。。我表示:郑,不服 --ヾノ。ÒㅅÓ)ノシ

    然后开始尝试用 mac 发声 -- say ni mà

    再然后,发现度娘说可以唱出来。。

    于是。。。。。<高能预警>

    高能一:<度娘教的>

    say -v Good oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

    高能二:

    -v Cellos ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee

    高能三:<很有魔性有木有!!>

    say --voice="Good News" ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee

    循环播放--室友已经洗脑了😄

    --------完结撒花--------

    60 条回复    2015-11-29 13:02:05 +08:00
    TF
        1
    TF  
       2015-11-15 14:08:34 +08:00
    真的是歌的話會比較好。。。
    Jocktaa
        2
    Jocktaa  
       2015-11-15 14:24:57 +08:00
    LOL 笑惨了~~
    kingcos
        3
    kingcos  
       2015-11-15 14:27:51 +08:00
    怎么停下来😂
    SquirrelMAN
        4
    SquirrelMAN  
       2015-11-15 14:28:21 +08:00
    唱的不错 233
    18000rpm
        5
    18000rpm  
       2015-11-15 14:30:03 +08:00
    allan888
        6
    allan888  
       2015-11-15 14:30:24 +08:00
    妈蛋笑死我了!!!
    ynyounuo
        7
    ynyounuo  
       2015-11-15 14:32:25 +08:00   ❤️ 5
    say --voice="Agnes" Isn't it nice to have a computer that will talk to you?
    say --voice="Albert" I have a frog in my throat. No, I mean a real frog!
    say --voice="Alex" Most people recognize me by my voice.
    say --voice="Alice" Salve, mi chiamo Alice e sono una voce italiana.
    say --voice="Alva" Hej, jag heter Alva. Jag är en svensk röst.
    say --voice="Amelie" Bonjour, je m ’ appelle Amelie. Je suis une voix canadienne.
    say --voice="Anna" Hallo, ich heiße Anna und ich bin eine deutsche Stimme.
    say --voice="Bad News" The light you see at the end of the tunnel is the headlamp of a fast approaching train.
    say --voice="Bahh" Do not pull the wool over my eyes.
    say --voice="Bells" Time flies when you are having fun.
    say --voice="Boing" Spring has sprung, fall has fell, winter's here and it's colder than usual.
    say --voice="Bruce" I sure like being inside this fancy computer
    say --voice="Bubbles" Pull the plug! I'm drowning!
    say --voice="Carmit" שלום. קוראים לי כרמית, ואני קול בשפה העברית.
    say --voice="Cellos" Doo da doo da dum dee dee doodly doo dum dum dum doo da doo da doo da doo da doo da doo da doo
    say --voice="Damayanti" Halo, nama saya Damayanti. Saya berbahasa Indonesia.
    say --voice="Daniel" Hello, my name is Daniel. I am a British-English voice.
    say --voice="Deranged" I need to go on a really long vacation.
    say --voice="Diego" Hola, me llamo Diego y soy una voz española.
    say --voice="Ellen" Hallo, mijn naam is Ellen. Ik ben een Belgische stem.
    say --voice="Fiona" en Hello, my name is Fiona. I am a Scottish-English voice.
    say --voice="Fred" I sure like being inside this fancy computer
    say --voice="Good News" Congratulations you just won the sweepstakes and you don't have to pay income tax again.
    say --voice="Hysterical" Please stop tickling me!
    say --voice="Ioana" Bună, mă cheamă Ioana . Sunt o voce românească.
    say --voice="Joana" Olá, chamo-me Joana e dou voz ao português falado em Portugal.
    say --voice="Junior" My favorite food is pizza.
    say --voice="Kanya" สวัสดีค่ะ ดิฉันชื่อKanya
    say --voice="Karen" Hello, my name is Karen. I am an Australian-English voice.
    say --voice="Kathy" Isn't it nice to have a computer that will talk to you?
    say --voice="Kyoko" こんにちは、私の名前はKyokoです。日本語の音声をお届けします。
    say --voice="Laura" Ahoj. Volám sa Laura . Som hlas v slovenskom jazyku.
    say --voice="Lekha" नमस्कार, मेरा नाम लेखा है.Lekha मै हिंदी मे बोलने वाली आवाज़ हूँ.
    say --voice="Luciana" Olá, o meu nome é Luciana e a minha voz corresponde ao português que é falado no Brasil
    say --voice="Maged" مرحبًا اسمي Maged. أنا عربي من السعودية.
    say --voice="Mariska" Üdvözlöm! Mariska vagyok. Én vagyok a magyar hang.
    say --voice="Mei-Jia" 您好,我叫美佳。我說國語。
    say --voice="Melina" Γεια σας, ονομάζομαι Melina. Είμαι μια ελληνική φωνή.
    say --voice="Milena" Здравствуйте, меня зовут Milena. Я – русский голос системы.
    say --voice="Moira" Hello, my name is Moira. I am an Irish-English voice.
    say --voice="Monica" Hola, me llamo Monica y soy una voz española.
    say --voice="Nora" Hei, jeg heter Nora. Jeg er en norsk stemme.
    say --voice="Paulina" Hola, me llamo Paulina y soy una voz mexicana.
    say --voice="Pipe Organ" We must rejoice in this morbid voice.
    say --voice="Princess" When I grow up I'm going to be a scientist.
    say --voice="Ralph" The sum of the squares of the legs of a right triangle is equal to the square of the hypotenuse.
    say --voice="Samantha" Hello, my name is Samantha. I am an American-English voice.
    say --voice="Sara" Hej, jeg hedder Sara. Jeg er en dansk stemme.
    say --voice="Satu" Hei, minun nimeni on Satu. Olen suomalainen ääni.
    say --voice="Sin-ji" 您好,我叫 Sin-ji 。我講廣東話。
    say --voice="Tessa" Hello, my name is Tessa. I am a South African-English voice.
    say --voice="Thomas" Bonjour, je m ’ appelle Thomas. Je suis une voix française.
    say --voice="Ting-Ting" 您好,我叫 Ting-Ting 。我讲中文普通话。
    say --voice="Trinoids" We cannot communicate with these carbon units.
    say --voice="Veena" Hello, my name is Veena. I am an Indian-English voice.
    say --voice="Vicki" Isn't it nice to have a computer that will talk to you?
    say --voice="Victoria" Isn't it nice to have a computer that will talk to you?
    say --voice="Whisper" Pssssst, hey you, Yeah you, Who do ya think I'm talking to, the mouse?
    say --voice="Xander" Hallo, mijn naam is Xander. Ik ben een Nederlandse stem.
    say --voice="Yelda" Merhaba, benim adım Yelda. Ben Türkçe bir sesim.
    say --voice="Yuna" 안녕하세요. 제 이름은 Yuna입니다. 저는 한국어 음성입니다.
    say --voice="Zarvox" That looks like a peaceful planet.
    say --voice="Zosia" Witaj. Mam na imię Zosia, jestem głosem kobiecym dla języka polskiego.
    say --voice="Zuzana" Dobrý den, jmenuji se Zuzana. Jsem český hlas.
    Starduster
        8
    Starduster  
       2015-11-15 14:35:28 +08:00
    已经笑出声
    precisi0nux
        9
    precisi0nux  
       2015-11-15 14:56:49 +08:00
    太屌了哈哈哈,终于知道为什么大家都要买 Mac 了木哈哈哈哈。
    megabits
        10
    megabits  
       2015-11-15 14:58:49 +08:00
    卧槽根本停不下来
    kn007
        11
    kn007  
       2015-11-15 15:10:50 +08:00
    mark ,没 mac 的飘过
    miao1007
        12
    miao1007  
       2015-11-15 15:15:32 +08:00
    say ni men ar,too young ,sometimes naive
    aprikyblue
        13
    aprikyblue  
       2015-11-15 15:18:03 +08:00
    先 mark

    同没 mac
    adexbn
        14
    adexbn  
       2015-11-15 15:47:16 +08:00
    笑到根本停不下来,另外求科普,旋律是怎么回事?为什么不是朗读而是歌曲?
    crayygy
        15
    crayygy  
       2015-11-15 16:08:43 +08:00
    笑尿...在图书馆笑成了一朵奇葩
    WildCat
        16
    WildCat  
       2015-11-15 16:14:06 +08:00 via iPhone
    在高铁上,已经迫不及待掏出 Mac 了,可惜我耳机忘在宿舍了
    br00k
        17
    br00k  
       2015-11-15 16:33:25 +08:00
    XD ...
    cevincheung
        18
    cevincheung  
       2015-11-15 16:36:39 +08:00
    mark 木有 mac
    fatestigma
        19
    fatestigma  
       2015-11-15 16:49:05 +08:00   ❤️ 2
    这个 o 听了我好久。。。。。。话说我之前收藏过一个 AppleScript 写的 Happy Birthday 歌。
    ```AppleScript
    set currentUser to long user name of (get system info)
    set firstName to first word of currentUser
    set lastName to last word of currentUser

    set noteValues to {56, 56, 58, 56, 61, 60, 50, 56, 56, 58, 56, 63, 61, 50, 56, 56, 68, 65, 61, 60, 58, 50, 66, 66, 65, 61, 63, 61} -- F
    -- set noteValues to {65, 65, 67, 65, 70, 69, 60, 65, 65, 67, 65, 72, 70, 60, 65, 65, 77, 74, 70, 69, 67, 60, 75, 75, 74, 70, 72, 70} -- D
    -- set noteValues to {55, 55, 57, 55, 60, 59, 50, 55, 55, 57, 55, 62, 60, 50, 55, 55, 67, 64, 60, 59, 57, 50, 65, 65, 64, 60, 62, 60} -- E

    set syllables to {"hap", "p", "birth", "day", "to", "you", "[[slnc 500]]", "hap", "p", "birth", "day", "to", "you", "[[slnc 500]]", "hap", "p", "birth", "day", "dear", firstName, lastName, "[[slnc 500]]", "hap", "p", "birth", "day", "to", "you"}

    repeat with i from 1 to the length of noteValues
    set thisValue to item i of noteValues
    set thisSyllable to item i of syllables
    if length of thisSyllable is less than 3 then
    set speakingRate to 220
    else
    set speakingRate to 100
    end if
    say thisSyllable pitch thisValue using "Victoria" speaking rate speakingRate modulation 0
    end repeat
    ```
    altair21
        20
    altair21  
       2015-11-15 17:07:37 +08:00
    好玩
    CRH
        21
    CRH  
       2015-11-15 20:56:08 +08:00   ❤️ 5
    say -v cellos "oh This is a silly song silly song silly song this is the silliest song I've ever ever heard So why keep you listening listening listening while you are supposed to work to work to work to work It's because I hate my job hate my job hate my job It's because I hate my job more than anything else No it's because you've no life you've no life you've no life and you better go get one after forwarding this crap"
    RAKE
        22
    RAKE  
       2015-11-15 21:21:37 +08:00
    Mathematica 也有,玩过一阵子真的笑笑出声 233
    Suclogger
        23
    Suclogger  
       2015-11-15 21:37:50 +08:00
    @CRH 666666666
    ffffwh
        24
    ffffwh  
       2015-11-15 21:43:06 +08:00
    @TF 是歌啊, Cellos 是那个女武神
    IMRES
        25
    IMRES  
       2015-11-15 21:44:51 +08:00
    有意思
    SamWanng
        26
    SamWanng  
       2015-11-15 21:56:30 +08:00
    osascript -e 'say "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo" using "Cellos"'



    osascript -e 'say "Dum dum dee dum dum dum dum dee Dum dum dee dum dum dum dum dee dum dee dum dum dum de dum dum dum dee dum dee dum dum dee dummmmmmmmmmmmmmmmm" using "Hysterical"'

    osascript -e 'say "Dum dum dee dum dum dum dum dee Dum dum dee dum dum dum dum dee dum dee dum dum dum de dum dum dum dee dum dee dum dum dee dummmmmmmmmmmmmmmmm" using "Pipe Organ"'
    SamWanng
        27
    SamWanng  
       2015-11-15 21:58:44 +08:00   ❤️ 1
    osascript -e 'say "trin girl trin yey mer, tea sure jane han ze, ren min how shoon dee, fool chin how er ze, ah trin girl, ah trin girl, ni she wow men how shoon dee, I wish I may, I wish I will, by ler ni jew bu gua ker" using "pipe organ"'

    春哥纯爷们儿,铁血真汉字,人民好兄弟,父亲好儿子,啊春哥,啊春哥,你是我们好兄弟, I wish I may, I wish I will, 拜了你就不挂课儿
    zhenbianshu
        28
    zhenbianshu  
       2015-11-15 22:18:11 +08:00
    无 mac 表示被戳痛点。
    pinger
        29
    pinger  
       2015-11-15 22:19:11 +08:00   ❤️ 1
    say --voice="Sin-ji" 有人问我,我就会讲,但是无人来。我期待到无奈有话要讲,得不到装载。我的心情犹像樽盖等被揭开,咀巴却在养青苔。人潮内愈文静愈变得不受理睬,自己要搞出意外。像突然地高歌。任何地方也像开四面台,着最闪的衫扮十分感慨,有人来拍照要记住插袋。你,当我是浮夸吧,夸张只因我很怕,似木头似石头的话得到注意吗。其实怕被忘记至放大来演吧,很不安怎去优雅,世上还赞颂沉默吗不够爆炸怎麽有话题让我夸做大娱乐家。
    eggacher
        30
    eggacher  
       2015-11-15 22:26:21 +08:00
    baozijun
        31
    baozijun  
       2015-11-15 22:33:44 +08:00
    @ynyounuo 想找四川话,结果没找到
    cxshun
        32
    cxshun  
       2015-11-15 22:37:52 +08:00
    最后一个笑成傻逼了,哈哈,楼主这也是玩得牛叉。
    liqingcan
        33
    liqingcan  
       2015-11-15 22:39:05 +08:00 via Android
    没 mac ,有谁想录个音发出来不。。
    sogood
        34
    sogood  
       2015-11-15 22:40:21 +08:00   ❤️ 1
    say -v Cellos ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee 听出了李志的感觉.........................................
    chendahui007
        35
    chendahui007  
       2015-11-15 23:04:45 +08:00
    妈妈再也不用担心你学粤语了
    urmyfaith
        36
    urmyfaith  
       2015-11-15 23:56:15 +08:00
    @kn007

    @aprikyblue

    @cevincheung

    @liqingcan

    已经上传了.

    链接: http://pan.baidu.com/s/1ntKoL9B 密码: duff

    包含上面列的 8 个的命令和音频文件,附赠 say 命令的用法 pdf.
    cevincheung
        37
    cevincheung  
       2015-11-16 00:42:01 +08:00
    @urmyfaith 密码错误
    kn007
        38
    kn007  
       2015-11-16 07:14:45 +08:00
    @urmyfaith 密码错误。。。
    liqingcan
        39
    liqingcan  
       2015-11-16 09:06:05 +08:00 via Android
    @urmyfaith 提取码错误。
    ldb1992
        40
    ldb1992  
       2015-11-16 09:08:22 +08:00
    哈哈哈, mark !
    urmyfaith
        41
    urmyfaith  
       2015-11-16 09:39:38 +08:00
    NovemberEleven
        42
    NovemberEleven  
       2015-11-16 09:44:52 +08:00
    哈哈哈,会玩。
    BigDecimal
        43
    BigDecimal  
       2015-11-16 09:45:30 +08:00
    我想说,程会玩!
    urmyfaith
        44
    urmyfaith  
       2015-11-16 09:47:44 +08:00
    再给个下载链接, = =!

    http://sharedoc.sinaapp.com/sayFile.zip
    sitin
        45
    sitin  
       2015-11-16 09:58:29 +08:00
    赞赞赞,笑尿。
    raysmond
        46
    raysmond  
       2015-11-16 10:51:12 +08:00
    get
    agate
        47
    agate  
       2015-11-16 11:22:48 +08:00
    超级有魔性
    sobigfish
        48
    sobigfish  
       2015-11-16 11:38:20 +08:00
    @SamWanng 春哥的用 Cellos 也很上口-。-

    say --voice="Cellos" "trin girl trin yey mer, tea sure jane han ze, ren min how shoon dee, fool chin how er ze, ah trin girl, ah trin girl, ni she wow men how shoon dee, I wish I may, I wish I will, by ler ni jew bu gua ker"
    Garantion
        49
    Garantion  
       2015-11-16 11:51:21 +08:00
    这波可以 满分!
    v2Panda
        50
    v2Panda  
       2015-11-16 12:32:42 +08:00
    太魔心了,试了试停不下来了。
    adrianzhang
        51
    adrianzhang  
       2015-11-16 12:35:36 +08:00
    哈哈哈
    for voice in `say --voice="?" | awk '{print $1}'`; do say -v $voice "Hello $USER, I'm $voice"; done
    xjl
        52
    xjl  
       2015-11-16 12:54:49 +08:00
    笑鸟了这个, say --voice="h" ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee ni mà bee
    zhjits
        53
    zhjits  
       2015-11-16 16:07:19 +08:00
    say -v Good do si dol re la sol fa mi fa sol re mi fa sol la re sol

    需要音乐细胞~
    HiPp0sS
        54
    HiPp0sS  
       2015-11-18 22:03:08 +08:00
    可以 有趣!
    geeksu
        55
    geeksu  
       2015-11-19 16:57:32 +08:00
    不该在上班时间打开的, 2333
    zenghsh3
        56
    zenghsh3  
       2015-11-25 13:27:21 +08:00
    有意思
    shakespark
        57
    shakespark  
       2015-11-25 22:41:59 +08:00
    笑死我了
    hilenlai
        58
    hilenlai  
       2015-11-26 12:17:36 +08:00
    哈哈哈哈哈哈哈哈哈哈哈哈哈
    LSBs
        59
    LSBs  
       2015-11-28 22:35:04 +08:00
    笑死我了
    KyleMeow
        60
    KyleMeow  
       2015-11-29 13:02:05 +08:00
    学第二外语神器啊,再也不用找陪练了 :)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5367 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:21 · PVG 17:21 · LAX 01:21 · JFK 04:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.