mac-voice-assistant


Namemac-voice-assistant JSON
Version 0.3.2 PyPI version JSON
download
home_pagehttps://pypi.org/project/mac-voice-assistant/
SummaryA voice assistant prototype
upload_time2023-07-09 15:55:32
maintainer
docs_urlNone
authorManish Raj
requires_python>=3.7
license
keywords python mac voice assistant
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Mac Voice Assistant
____________
This is a prototype software package which performs IO operations in the Host app via voice commands

## Dependencies
____________
Run the following commands in your project terminal in the same order before installing Mac Voice Assistant
### 1. Brew
Run this if you do not have brew installed already

`$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`

### 2. Command Line Developer Tools - XCode (Mac Users)
Please ensure Xcode packages are up-to-date. Try running
- `$ sudo xcodebuild -license`
- `$ xcodebuild -runFirstLaunch`

### 3. Portaudio
`$ brew install portaudio`

### 4. PyAudio
`$ pip3 install pyaudio`

If Pyaudio could not be installed with the default pip install command, try the below code: 

`$ pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio` 
>Refer to [this link](https://gist.github.com/jiaaro/9767512210a1d80a8a0d#gistcomment-3023216) if you're still having trouble installing PyAudio

### 5. `Finally` Mac Voice Assistant
`$ pip install mac_voice_assistant`

## Debug:
____________
- If you run into SSL certification error, search for `Certificates.command` in spotlight and open the file. 
It should install the necessary certificates

- If voice is crackling or robotic, it is because the default voice might not be available on your local machine.
Follow the steps in the below link to add voices to your Mac, or change to one you have on your system already. 
Later Update self.default_voice with the desired voice.id
> https://support.apple.com/en-gb/guide/mac-help/mchlp2290/mac#:~:text=Add%20a%20new%20voice,may%20need%20to%20scroll%20down.)

- There are a few known issues with NSSS.py and pysstx3.py on macOS Ventura. 
Until we receive an update with those fixes, below is a temporary workaround for the errors in init stage.

In pyttsx3/drivers/nsss.py:
```
def _toVoice(self, attr) method:
    Replace:
         return Voice(attr['VoiceIdentifier'], attr['VoiceName'],
            [lang], attr['VoiceGender'],
            attr['VoiceAge'])
    With:
        return Voice(attr.get('VoiceIdentifier'), attr.get('VoiceName'),
            [attr.get('VoiceLocaleIdentifier', attr.get('VoiceLanguage'))], attr.get('VoiceGender'),
            attr.get('VoiceAge'))
```

```
class NSSpeechDriver(NSObject):
    Replace:
        self = super(NSSpeechDriver, self).init()
    With:
        self = objc.super(NSSpeechDriver, self).init()
```

> If the downloader script is broken. As a temporal workaround can manually download the punkt tokenizer from here and 
>then place the unzipped folder in the corresponding location. 
>The default folders for each OS are:
> 
>>Windows: `C:\nltk_data\tokenizers`
>
>> OSX: `/usr/local/share/nltk_data/tokenizers`
>
>> Unix: `/usr/share/nltk_data/tokenizers`

            

Raw data

            {
    "_id": null,
    "home_page": "https://pypi.org/project/mac-voice-assistant/",
    "name": "mac-voice-assistant",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "python,mac,voice,assistant",
    "author": "Manish Raj",
    "author_email": "Manish Raj <manishraj1.618@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/04/df/384583e9d1751766e2577d6b76d5c0f8caf7eae98019fcb45277298947ca/mac_voice_assistant-0.3.2.tar.gz",
    "platform": null,
    "description": "# Mac Voice Assistant\n____________\nThis is a prototype software package which performs IO operations in the Host app via voice commands\n\n## Dependencies\n____________\nRun the following commands in your project terminal in the same order before installing Mac Voice Assistant\n### 1. Brew\nRun this if you do not have brew installed already\n\n`$ /bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\"`\n\n### 2. Command Line Developer Tools - XCode (Mac Users)\nPlease ensure Xcode packages are up-to-date. Try running\n- `$ sudo xcodebuild -license`\n- `$ xcodebuild -runFirstLaunch`\n\n### 3. Portaudio\n`$ brew install portaudio`\n\n### 4. PyAudio\n`$ pip3 install pyaudio`\n\nIf Pyaudio could not be installed with the default pip install command, try the below code: \n\n`$ pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio` \n>Refer to [this link](https://gist.github.com/jiaaro/9767512210a1d80a8a0d#gistcomment-3023216) if you're still having trouble installing PyAudio\n\n### 5. `Finally` Mac Voice Assistant\n`$ pip install mac_voice_assistant`\n\n## Debug:\n____________\n- If you run into SSL certification error, search for `Certificates.command` in spotlight and open the file. \nIt should install the necessary certificates\n\n- If voice is crackling or robotic, it is because the default voice might not be available on your local machine.\nFollow the steps in the below link to add voices to your Mac, or change to one you have on your system already. \nLater Update self.default_voice with the desired voice.id\n> https://support.apple.com/en-gb/guide/mac-help/mchlp2290/mac#:~:text=Add%20a%20new%20voice,may%20need%20to%20scroll%20down.)\n\n- There are a few known issues with NSSS.py and pysstx3.py on macOS Ventura. \nUntil we receive an update with those fixes, below is a temporary workaround for the errors in init stage.\n\nIn pyttsx3/drivers/nsss.py:\n```\ndef _toVoice(self, attr) method:\n    Replace:\n         return Voice(attr['VoiceIdentifier'], attr['VoiceName'],\n            [lang], attr['VoiceGender'],\n            attr['VoiceAge'])\n    With:\n        return Voice(attr.get('VoiceIdentifier'), attr.get('VoiceName'),\n            [attr.get('VoiceLocaleIdentifier', attr.get('VoiceLanguage'))], attr.get('VoiceGender'),\n            attr.get('VoiceAge'))\n```\n\n```\nclass NSSpeechDriver(NSObject):\n    Replace:\n        self = super(NSSpeechDriver, self).init()\n    With:\n        self = objc.super(NSSpeechDriver, self).init()\n```\n\n> If the downloader script is broken. As a temporal workaround can manually download the punkt tokenizer from here and \n>then place the unzipped folder in the corresponding location. \n>The default folders for each OS are:\n> \n>>Windows: `C:\\nltk_data\\tokenizers`\n>\n>> OSX: `/usr/local/share/nltk_data/tokenizers`\n>\n>> Unix: `/usr/share/nltk_data/tokenizers`\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A voice assistant prototype",
    "version": "0.3.2",
    "project_urls": {
        "Bug Tracker": "https://github.com/Cre5cend0/mac/issues",
        "Homepage": "https://github.com/Cre5cend0/mac"
    },
    "split_keywords": [
        "python",
        "mac",
        "voice",
        "assistant"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ae94ecad1452370aac15943ef58580d39b30a995b1955ff8f6e92f7e48a5ddf",
                "md5": "d053b6a1254d0ea13aba5a307a098237",
                "sha256": "2e47bc23fdbe0f29871ffaf19b54aa8b83218d52980fa0a0c5e5fe6c55e38eec"
            },
            "downloads": -1,
            "filename": "mac_voice_assistant-0.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d053b6a1254d0ea13aba5a307a098237",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 96044,
            "upload_time": "2023-07-09T15:55:30",
            "upload_time_iso_8601": "2023-07-09T15:55:30.109241Z",
            "url": "https://files.pythonhosted.org/packages/5a/e9/4ecad1452370aac15943ef58580d39b30a995b1955ff8f6e92f7e48a5ddf/mac_voice_assistant-0.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "04df384583e9d1751766e2577d6b76d5c0f8caf7eae98019fcb45277298947ca",
                "md5": "aaab0b3c0ea131a7af9695458fb5974d",
                "sha256": "c632320dde91b73027f4bed31e94e1c38c89befc84417abfced860f30b52a37e"
            },
            "downloads": -1,
            "filename": "mac_voice_assistant-0.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "aaab0b3c0ea131a7af9695458fb5974d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 97306,
            "upload_time": "2023-07-09T15:55:32",
            "upload_time_iso_8601": "2023-07-09T15:55:32.076696Z",
            "url": "https://files.pythonhosted.org/packages/04/df/384583e9d1751766e2577d6b76d5c0f8caf7eae98019fcb45277298947ca/mac_voice_assistant-0.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-09 15:55:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Cre5cend0",
    "github_project": "mac",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "mac-voice-assistant"
}
        
Elapsed time: 0.08471s