We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Typing error in recognize_google() methode
In mycroft/stt/\_\_init\_\_.py line 74 :
Replacing mistyped 's' parameter by self.lang fixed the problem.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `mycroft/stt/__init__.py`
Content:
```
1 # Copyright 2016 Mycroft AI, Inc.
2 #
3 # This file is part of Mycroft Core.
4 #
5 # Mycroft Core is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # Mycroft Core is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Mycroft Core.  If not, see <http://www.gnu.org/licenses/>.
17 from abc import ABCMeta, abstractmethod
18 
19 from speech_recognition import Recognizer
20 
21 from mycroft.api import STTApi
22 from mycroft.configuration import ConfigurationManager
23 from mycroft.util.log import getLogger
24 
25 __author__ = "jdorleans"
26 
27 LOG = getLogger("STT")
28 
29 
30 class STT(object):
31     __metaclass__ = ABCMeta
32 
33     def __init__(self):
34         config_core = ConfigurationManager.get()
35         self.lang = str(self.init_language(config_core))
36         config_stt = config_core.get("stt", {})
37         self.config = config_stt.get(config_stt.get("module"), {})
38         self.credential = self.config.get("credential", {})
39         self.recognizer = Recognizer()
40 
41     @staticmethod
42     def init_language(config_core):
43         langs = config_core.get("lang", "en-US").split("-")
44         return langs[0].lower() + "-" + langs[1].upper()
45 
46     @abstractmethod
47     def execute(self, audio, language=None):
48         pass
49 
50 
51 class TokenSTT(STT):
52     __metaclass__ = ABCMeta
53 
54     def __init__(self):
55         super(TokenSTT, self).__init__()
56         self.token = str(self.credential.get("token"))
57 
58 
59 class BasicSTT(STT):
60     __metaclass__ = ABCMeta
61 
62     def __init__(self):
63         super(BasicSTT, self).__init__()
64         self.username = str(self.credential.get("username"))
65         self.password = str(self.credential.get("password"))
66 
67 
68 class GoogleSTT(TokenSTT):
69     def __init__(self):
70         super(GoogleSTT, self).__init__()
71 
72     def execute(self, audio, language=None):
73         self.lang = language or self.lang
74         return self.recognizer.recognize_google(audio, self.token, s)
75 
76 
77 class WITSTT(TokenSTT):
78     def __init__(self):
79         super(WITSTT, self).__init__()
80 
81     def execute(self, audio, language=None):
82         LOG.warn("WITSTT language should be configured at wit.ai settings.")
83         return self.recognizer.recognize_wit(audio, self.token)
84 
85 
86 class IBMSTT(BasicSTT):
87     def __init__(self):
88         super(IBMSTT, self).__init__()
89 
90     def execute(self, audio, language=None):
91         self.lang = language or self.lang
92         return self.recognizer.recognize_ibm(audio, self.username,
93                                              self.password, self.lang)
94 
95 
96 class MycroftSTT(STT):
97     def __init__(self):
98         super(MycroftSTT, self).__init__()
99         self.api = STTApi()
100 
101     def execute(self, audio, language=None):
102         self.lang = language or self.lang
103         return self.api.stt(audio.get_flac_data(), self.lang, 1)[0]
104 
105 
106 class STTFactory(object):
107     CLASSES = {
108         "mycroft": MycroftSTT,
109         "google": GoogleSTT,
110         "wit": WITSTT,
111         "ibm": IBMSTT
112     }
113 
114     @staticmethod
115     def create():
116         config = ConfigurationManager.get().get("stt", {})
117         module = config.get("module", "mycroft")
118         clazz = STTFactory.CLASSES.get(module)
119         return clazz()
120
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/mycroft/stt/__init__.py b/mycroft/stt/__init__.py
--- a/mycroft/stt/__init__.py
+++ b/mycroft/stt/__init__.py
@@ -71,7 +71,7 @@
 
     def execute(self, audio, language=None):
         self.lang = language or self.lang
-        return self.recognizer.recognize_google(audio, self.token, s)
+        return self.recognizer.recognize_google(audio, self.token, self.lang)
 
 
 class WITSTT(TokenSTT):

{"golden_diff": "diff --git a/mycroft/stt/__init__.py b/mycroft/stt/__init__.py\n--- a/mycroft/stt/__init__.py\n+++ b/mycroft/stt/__init__.py\n@@ -71,7 +71,7 @@\n \n     def execute(self, audio, language=None):\n         self.lang = language or self.lang\n-        return self.recognizer.recognize_google(audio, self.token, s)\n+        return self.recognizer.recognize_google(audio, self.token, self.lang)\n \n \n class WITSTT(TokenSTT):\n", "issue": "Typing error in recognize_google() methode\nIn mycroft/stt/\\_\\_init\\_\\_.py line 74 :\r\nReplacing mistyped 's' parameter by self.lang fixed the problem.\n", "before_files": [{"content": "# Copyright 2016 Mycroft AI, Inc.\n#\n# This file is part of Mycroft Core.\n#\n# Mycroft Core is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# Mycroft Core is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with Mycroft Core.  If not, see <http://www.gnu.org/licenses/>.\nfrom abc import ABCMeta, abstractmethod\n\nfrom speech_recognition import Recognizer\n\nfrom mycroft.api import STTApi\nfrom mycroft.configuration import ConfigurationManager\nfrom mycroft.util.log import getLogger\n\n__author__ = \"jdorleans\"\n\nLOG = getLogger(\"STT\")\n\n\nclass STT(object):\n    __metaclass__ = ABCMeta\n\n    def __init__(self):\n        config_core = ConfigurationManager.get()\n        self.lang = str(self.init_language(config_core))\n        config_stt = config_core.get(\"stt\", {})\n        self.config = config_stt.get(config_stt.get(\"module\"), {})\n        self.credential = self.config.get(\"credential\", {})\n        self.recognizer = Recognizer()\n\n    @staticmethod\n    def init_language(config_core):\n        langs = config_core.get(\"lang\", \"en-US\").split(\"-\")\n        return langs[0].lower() + \"-\" + langs[1].upper()\n\n    @abstractmethod\n    def execute(self, audio, language=None):\n        pass\n\n\nclass TokenSTT(STT):\n    __metaclass__ = ABCMeta\n\n    def __init__(self):\n        super(TokenSTT, self).__init__()\n        self.token = str(self.credential.get(\"token\"))\n\n\nclass BasicSTT(STT):\n    __metaclass__ = ABCMeta\n\n    def __init__(self):\n        super(BasicSTT, self).__init__()\n        self.username = str(self.credential.get(\"username\"))\n        self.password = str(self.credential.get(\"password\"))\n\n\nclass GoogleSTT(TokenSTT):\n    def __init__(self):\n        super(GoogleSTT, self).__init__()\n\n    def execute(self, audio, language=None):\n        self.lang = language or self.lang\n        return self.recognizer.recognize_google(audio, self.token, s)\n\n\nclass WITSTT(TokenSTT):\n    def __init__(self):\n        super(WITSTT, self).__init__()\n\n    def execute(self, audio, language=None):\n        LOG.warn(\"WITSTT language should be configured at wit.ai settings.\")\n        return self.recognizer.recognize_wit(audio, self.token)\n\n\nclass IBMSTT(BasicSTT):\n    def __init__(self):\n        super(IBMSTT, self).__init__()\n\n    def execute(self, audio, language=None):\n        self.lang = language or self.lang\n        return self.recognizer.recognize_ibm(audio, self.username,\n                                             self.password, self.lang)\n\n\nclass MycroftSTT(STT):\n    def __init__(self):\n        super(MycroftSTT, self).__init__()\n        self.api = STTApi()\n\n    def execute(self, audio, language=None):\n        self.lang = language or self.lang\n        return self.api.stt(audio.get_flac_data(), self.lang, 1)[0]\n\n\nclass STTFactory(object):\n    CLASSES = {\n        \"mycroft\": MycroftSTT,\n        \"google\": GoogleSTT,\n        \"wit\": WITSTT,\n        \"ibm\": IBMSTT\n    }\n\n    @staticmethod\n    def create():\n        config = ConfigurationManager.get().get(\"stt\", {})\n        module = config.get(\"module\", \"mycroft\")\n        clazz = STTFactory.CLASSES.get(module)\n        return clazz()\n", "path": "mycroft/stt/__init__.py"}], "after_files": [{"content": "# Copyright 2016 Mycroft AI, Inc.\n#\n# This file is part of Mycroft Core.\n#\n# Mycroft Core is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# Mycroft Core is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with Mycroft Core.  If not, see <http://www.gnu.org/licenses/>.\nfrom abc import ABCMeta, abstractmethod\n\nfrom speech_recognition import Recognizer\n\nfrom mycroft.api import STTApi\nfrom mycroft.configuration import ConfigurationManager\nfrom mycroft.util.log import getLogger\n\n__author__ = \"jdorleans\"\n\nLOG = getLogger(\"STT\")\n\n\nclass STT(object):\n    __metaclass__ = ABCMeta\n\n    def __init__(self):\n        config_core = ConfigurationManager.get()\n        self.lang = str(self.init_language(config_core))\n        config_stt = config_core.get(\"stt\", {})\n        self.config = config_stt.get(config_stt.get(\"module\"), {})\n        self.credential = self.config.get(\"credential\", {})\n        self.recognizer = Recognizer()\n\n    @staticmethod\n    def init_language(config_core):\n        langs = config_core.get(\"lang\", \"en-US\").split(\"-\")\n        return langs[0].lower() + \"-\" + langs[1].upper()\n\n    @abstractmethod\n    def execute(self, audio, language=None):\n        pass\n\n\nclass TokenSTT(STT):\n    __metaclass__ = ABCMeta\n\n    def __init__(self):\n        super(TokenSTT, self).__init__()\n        self.token = str(self.credential.get(\"token\"))\n\n\nclass BasicSTT(STT):\n    __metaclass__ = ABCMeta\n\n    def __init__(self):\n        super(BasicSTT, self).__init__()\n        self.username = str(self.credential.get(\"username\"))\n        self.password = str(self.credential.get(\"password\"))\n\n\nclass GoogleSTT(TokenSTT):\n    def __init__(self):\n        super(GoogleSTT, self).__init__()\n\n    def execute(self, audio, language=None):\n        self.lang = language or self.lang\n        return self.recognizer.recognize_google(audio, self.token, self.lang)\n\n\nclass WITSTT(TokenSTT):\n    def __init__(self):\n        super(WITSTT, self).__init__()\n\n    def execute(self, audio, language=None):\n        LOG.warn(\"WITSTT language should be configured at wit.ai settings.\")\n        return self.recognizer.recognize_wit(audio, self.token)\n\n\nclass IBMSTT(BasicSTT):\n    def __init__(self):\n        super(IBMSTT, self).__init__()\n\n    def execute(self, audio, language=None):\n        self.lang = language or self.lang\n        return self.recognizer.recognize_ibm(audio, self.username,\n                                             self.password, self.lang)\n\n\nclass MycroftSTT(STT):\n    def __init__(self):\n        super(MycroftSTT, self).__init__()\n        self.api = STTApi()\n\n    def execute(self, audio, language=None):\n        self.lang = language or self.lang\n        return self.api.stt(audio.get_flac_data(), self.lang, 1)[0]\n\n\nclass STTFactory(object):\n    CLASSES = {\n        \"mycroft\": MycroftSTT,\n        \"google\": GoogleSTT,\n        \"wit\": WITSTT,\n        \"ibm\": IBMSTT\n    }\n\n    @staticmethod\n    def create():\n        config = ConfigurationManager.get().get(\"stt\", {})\n        module = config.get(\"module\", \"mycroft\")\n        clazz = STTFactory.CLASSES.get(module)\n        return clazz()\n", "path": "mycroft/stt/__init__.py"}]}