{"id":3629,"date":"2020-09-22T18:07:54","date_gmt":"2020-09-22T16:07:54","guid":{"rendered":"https:\/\/www.mathweb.fr\/euclide\/?p=3629"},"modified":"2020-10-03T14:53:07","modified_gmt":"2020-10-03T12:53:07","slug":"reconnaissance-voix-python","status":"publish","type":"post","link":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/","title":{"rendered":"Reconnaissance de voix en Python"},"content":{"rendered":"\n<p>La reconnaissance de voix en Python peut \u00eatre un atout pour un programme: inutile de taper au clavier, il suffit de parler  !<\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"790\" height=\"500\" src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix-python.jpg\" alt=\"reconnaissance de voix en Python\" class=\"wp-image-3630\" srcset=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix-python.jpg 790w, https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix-python-300x190.jpg 300w, https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix-python-600x380.jpg 600w, https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix-python-768x486.jpg 768w\" sizes=\"auto, (max-width: 790px) 100vw, 790px\" \/><\/figure><\/div>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Au menu sur cette page...<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#Reconnaissance_de_voix_en_Python_notre_objectif\" >Reconnaissance de voix en Python: notre objectif<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#Reconnaissance_de_voix_en_Python_installation_des_modules\" >Reconnaissance de voix en Python: installation des modules<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#Reconnaissance_de_voix_en_Python_un_programme_minimaliste\" >Reconnaissance de voix en Python: un programme minimaliste<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#Enregistrement_du_fichier_au_format_wav\" >Enregistrement du fichier au format wav<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#Comment_exploiter_tout_ca\" >Comment exploiter tout \u00e7a ?<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reconnaissance_de_voix_en_Python_notre_objectif\"><\/span>Reconnaissance de voix en Python: notre objectif<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Nous allons ici voir comment faire en sorte qu&#8217;un programme Python puisse transcrire en cha\u00eene de caract\u00e8res ce que nous allons dire \u00e0 haute voix.<\/p>\n\n\n\n<p>Pour cela, nous aurons besoin de deux modules:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PyAudio<\/li><li>speech_recognition (voir la <a href=\"https:\/\/pypi.org\/project\/SpeechRecognition\/\" target=\"_blank\" rel=\"noreferrer noopener\">documentation<\/a>)<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reconnaissance_de_voix_en_Python_installation_des_modules\"><\/span>Reconnaissance de voix en Python: installation des modules<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>L&#8217;installation de PyAudio peut s&#8217;av\u00e9rer compliqu\u00e9e sous Windows pour une version de Python sup\u00e9rieure \u00e0 3.6.<\/p>\n\n\n\n<p>Pour ma part, j&#8217;ai une version 3.8 et l&#8217;installation classique ne fonctionnait pas.<\/p>\n\n\n\n<p>Je suis donc all\u00e9 dans le terminal de Windows (&#8220;cmd&#8221;), et j&#8217;ai tap\u00e9:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install pipwin\npipwin install pyaudio<\/pre>\n\n\n\n<p>Et l\u00e0, tout s&#8217;est bien pass\u00e9 ! J&#8217;ai ensuite install\u00e9 <em>speech_recognition<\/em>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install SpeechRecognition<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reconnaissance_de_voix_en_Python_un_programme_minimaliste\"><\/span>Reconnaissance de voix en Python: un programme minimaliste<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from speech_recognition import Recognizer, Microphone\n\nrecognizer = Recognizer()\n\n# On enregistre le son\n\nwith Microphone() as source:\n    print(\"R\u00e9glage du bruit ambiant... Patientez...\")\n    recognizer.adjust_for_ambient_noise(source)\n    print(\"Vous pouvez parler...\")\n    recorded_audio = recognizer.listen(source)\n    print(\"Enregistrement termin\u00e9 !\")\n    \n# Reconnaissance de l'audio\n\ntry:\n    print(\"Reconnaissance du texte...\")\n    text = recognizer.recognize_google(\n            recorded_audio, \n            language=\"fr-FR\"\n        )\n    print(\"Vous avez dit : {}\".format(text))\n\nexcept Exception as ex:\n    print(ex)<\/pre>\n\n\n\n<p>Voici en vid\u00e9o ce que donne ce petit programme :<\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video height=\"344\" style=\"aspect-ratio: 1216 \/ 344;\" width=\"1216\" controls src=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix.mp4\"><\/video><\/figure>\n\n\n\n<p>Comme vous pouvez le constater, la reconnaissance se termine automatiquement une fois qu&#8217;aucun son n&#8217;est d\u00e9tect\u00e9.<\/p>\n\n\n\n<p>Mais on peut, si on le d\u00e9sire, fixer une dur\u00e9e maximale avec l&#8217;option <em>timeout<\/em>, qui donne le temps en secondes. Par exemple,<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"false\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">recorded_audio = recognizer.listen(source , timeout = 10)<\/pre>\n\n\n\n<p>fixera \u00e0 10 secondes le temps de l&#8217;enregistrement.<\/p>\n\n\n\n<p>Il y a tout de m\u00eame un inconv\u00e9nient : il faut \u00eatre connect\u00e9\u00b7e pour que cela fonctionne.<\/p>\n\n\n\n<p>Alors, oui, il y a une autre m\u00e9thode hors-ligne avec PocketSphinx mais je ne pourrai pas vous en dire plus car je n&#8217;ai pas test\u00e9.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Enregistrement_du_fichier_au_format_wav\"><\/span>Enregistrement du fichier au format wav<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Si on souhaite garder une trace de ce qui a \u00e9t\u00e9 dit, on peut sauvegarder tout \u00e7a dans un fichier <em>wav<\/em> par exemple. On pourra alors \u00e9crire:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">from speech_recognition import Recognizer, Microphone\n\nrecognizer = Recognizer()\n\n# On enregistre le son\n\nwith Microphone() as source:\n    print(\"R\u00e9glage du bruit ambiant... Patientez...\")\n    recognizer.adjust_for_ambient_noise(source)\n    print(\"Vous pouvez parler...\")\n    audio = recognizer.listen(source)\n    print(\"Enregistrement termin\u00e9 !\")\n    with open('record.wav' , 'wb') as f:\n        f.write( audio.get_wav_data() )\n    \n# Reconnaissance de l'audio\n\ntry:\n    print(\"Reconnaissance du texte...\")\n    text = recognizer.recognize_google(\n            audio, \n            language=\"fr-FR\"\n        )\n    print(\"Vous avez dit : {}\".format(text))\n\nexcept Exception as ex:\n    print(ex)<\/pre>\n\n\n\n<p>Je n&#8217;ai pas ajout\u00e9 grand-chose en d\u00e9finitive&#8230; Juste les lignes 13 et 14.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Comment_exploiter_tout_ca\"><\/span>Comment exploiter tout \u00e7a ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>On peut imaginer que la reconnaissance vocale puisse avoir une utilit\u00e9 dans l&#8217;un de vos projets quand il s&#8217;agit d&#8217;\u00e9pargner les utilisateurs\u00b7trices pour ce qui est de la saisie manuelle. Mais il y a des limites tout de m\u00eame&#8230; Comme vous pouvez l&#8217;avoir remarqu\u00e9, les signes de ponctuation sont manquants, ce qui n&#8217;est pas &#8220;top m\u00e9ga cool&#8221;&#8230; comme disent les jeunes \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>La reconnaissance de voix en Python peut \u00eatre un atout pour un programme: inutile de taper au clavier, il suffit de parler !<\/p>\n","protected":false},"author":1,"featured_media":3715,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-3629","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informatique","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Reconnaissance de voix en Python - Mathweb.fr - Parlez et c&#039;est fait !<\/title>\n<meta name=\"description\" content=\"La reconnaissance de voix en Python peut \u00eatre un atout pour un programme: inutile de taper au clavier, il suffit de parler !\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reconnaissance de voix en Python - Mathweb.fr - Parlez et c&#039;est fait !\" \/>\n<meta property=\"og:description\" content=\"La reconnaissance de voix en Python peut \u00eatre un atout pour un programme: inutile de taper au clavier, il suffit de parler !\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Mathweb.fr\" \/>\n<meta property=\"article:published_time\" content=\"2020-09-22T16:07:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-03T12:53:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"740\" \/>\n\t<meta property=\"og:image:height\" content=\"198\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"St\u00e9phane Pasquet\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"St\u00e9phane Pasquet\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/\"},\"author\":{\"name\":\"St\u00e9phane Pasquet\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\"},\"headline\":\"Reconnaissance de voix en Python\",\"datePublished\":\"2020-09-22T16:07:54+00:00\",\"dateModified\":\"2020-10-03T12:53:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/\"},\"wordCount\":378,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/reconnaissance-voix.jpg\",\"articleSection\":[\"Informatique\",\"Python\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/\",\"name\":\"Reconnaissance de voix en Python - Mathweb.fr - Parlez et c'est fait !\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/reconnaissance-voix.jpg\",\"datePublished\":\"2020-09-22T16:07:54+00:00\",\"dateModified\":\"2020-10-03T12:53:07+00:00\",\"description\":\"La reconnaissance de voix en Python peut \u00eatre un atout pour un programme: inutile de taper au clavier, il suffit de parler !\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/reconnaissance-voix.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2020\\\/09\\\/reconnaissance-voix.jpg\",\"width\":740,\"height\":198},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/2020\\\/09\\\/22\\\/reconnaissance-voix-python\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Reconnaissance de voix en Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#website\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/\",\"name\":\"Mathweb.fr\",\"description\":\"Math\u00e9matiques, LaTeX et Python\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/#\\\/schema\\\/person\\\/e4d3bb07968238378f0d5052a70dcd69\",\"name\":\"St\u00e9phane Pasquet\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-logo-mathweb.webp\",\"url\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-logo-mathweb.webp\",\"contentUrl\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-logo-mathweb.webp\",\"width\":74,\"height\":77,\"caption\":\"St\u00e9phane Pasquet\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.mathweb.fr\\\/euclide\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/cropped-logo-mathweb.webp\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Reconnaissance de voix en Python - Mathweb.fr - Parlez et c'est fait !","description":"La reconnaissance de voix en Python peut \u00eatre un atout pour un programme: inutile de taper au clavier, il suffit de parler !","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/","og_locale":"fr_FR","og_type":"article","og_title":"Reconnaissance de voix en Python - Mathweb.fr - Parlez et c'est fait !","og_description":"La reconnaissance de voix en Python peut \u00eatre un atout pour un programme: inutile de taper au clavier, il suffit de parler !","og_url":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/","og_site_name":"Mathweb.fr","article_published_time":"2020-09-22T16:07:54+00:00","article_modified_time":"2020-10-03T12:53:07+00:00","og_image":[{"width":740,"height":198,"url":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix.jpg","type":"image\/jpeg"}],"author":"St\u00e9phane Pasquet","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"St\u00e9phane Pasquet","Dur\u00e9e de lecture estim\u00e9e":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#article","isPartOf":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/"},"author":{"name":"St\u00e9phane Pasquet","@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69"},"headline":"Reconnaissance de voix en Python","datePublished":"2020-09-22T16:07:54+00:00","dateModified":"2020-10-03T12:53:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/"},"wordCount":378,"commentCount":2,"publisher":{"@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69"},"image":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix.jpg","articleSection":["Informatique","Python"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/","url":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/","name":"Reconnaissance de voix en Python - Mathweb.fr - Parlez et c'est fait !","isPartOf":{"@id":"https:\/\/www.mathweb.fr\/euclide\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#primaryimage"},"image":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix.jpg","datePublished":"2020-09-22T16:07:54+00:00","dateModified":"2020-10-03T12:53:07+00:00","description":"La reconnaissance de voix en Python peut \u00eatre un atout pour un programme: inutile de taper au clavier, il suffit de parler !","breadcrumb":{"@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#primaryimage","url":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix.jpg","contentUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2020\/09\/reconnaissance-voix.jpg","width":740,"height":198},{"@type":"BreadcrumbList","@id":"https:\/\/www.mathweb.fr\/euclide\/2020\/09\/22\/reconnaissance-voix-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.mathweb.fr\/euclide\/"},{"@type":"ListItem","position":2,"name":"Reconnaissance de voix en Python"}]},{"@type":"WebSite","@id":"https:\/\/www.mathweb.fr\/euclide\/#website","url":"https:\/\/www.mathweb.fr\/euclide\/","name":"Mathweb.fr","description":"Math\u00e9matiques, LaTeX et Python","publisher":{"@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mathweb.fr\/euclide\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":["Person","Organization"],"@id":"https:\/\/www.mathweb.fr\/euclide\/#\/schema\/person\/e4d3bb07968238378f0d5052a70dcd69","name":"St\u00e9phane Pasquet","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2025\/06\/cropped-logo-mathweb.webp","url":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2025\/06\/cropped-logo-mathweb.webp","contentUrl":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2025\/06\/cropped-logo-mathweb.webp","width":74,"height":77,"caption":"St\u00e9phane Pasquet"},"logo":{"@id":"https:\/\/www.mathweb.fr\/euclide\/wp-content\/uploads\/2025\/06\/cropped-logo-mathweb.webp"}}]}},"_links":{"self":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/posts\/3629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/comments?post=3629"}],"version-history":[{"count":0,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/posts\/3629\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/media\/3715"}],"wp:attachment":[{"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/media?parent=3629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/categories?post=3629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mathweb.fr\/euclide\/wp-json\/wp\/v2\/tags?post=3629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}