Skip to main content

Unofficial Otter.ai Python API

Project description

otterai-py

Unofficial Python API for otter.ai

Note: This project is a fork of gmchad/otterai-api, as the original repository appears to be abandoned. Improvements and updates will be maintained here.

Contents

Installation

Install via pip:

pip install .[dev]

or in a virtual environment:

python3 -m venv env
source env/bin/activate
pip install .[dev]

Setup

from otterai import OtterAI
otter = OtterAI()
otter.login('USERNAME', 'PASSWORD')

APIs

User

Get user-specific data:

otter.get_user()

Speeches

Get all speeches.

Optional parameters: folder, page_size, source

otter.get_speeches()

Get a speech by ID:

otter.get_speech(OTID)

Query a speech:

otter.query_speech(QUERY, OTID)

Upload a speech.

Optional parameters: content_type (default: audio/mp4)

otter.upload_speech(FILE_NAME)

Download a speech.

Optional parameters: filename (default: id), format (default: all available formats (txt,pdf,mp3,docx,srt) as a zip file)

otter.download_speech(OTID, FILE_NAME)

Move a speech to the trash:

otter.move_to_trash_bin(OTID)

Set speech title:

otter.set_speech_title(OTID, TITLE)

TODO

  • Start a live speech
  • Stop a live speech
  • Assign a speaker to a speech transcript

Speakers

Get all speakers:

otter.get_speakers()

Create a speaker:

otter.create_speaker(SPEAKER_NAME)

Folders

Get all folders:

otter.get_folders()

Groups

Get all groups:

otter.list_groups()

Notifications

Get notification settings:

otter.get_notification_settings()

Exceptions

from otterai import OtterAIException

try:
    ...
except OtterAIException as e:
    ...

Contribution

To contribute to this project, follow these steps:

  1. Create a .env file in the root directory with the following content:

    OTTERAI_USERNAME=""
    OTTERAI_PASSWORD=""
    TEST_OTTERAI_SPEECH_OTID=""
    
    • Replace OTTERAI_USERNAME and OTTERAI_PASSWORD with your Otter.ai credentials.
    • Replace TEST_OTTERAI_SPEECH_OTID with the ID of a speech you create on Otter.ai. This is required for the tests to pass.
  2. To run the tests and the main.py file, execute the run.sh script:

    ./run.sh
    
  3. Ensure all tests pass and make necessary updates to the tests if you modify or add functionality.

  4. Submit a pull request with a clear description of your changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otterai_py-0.0.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

otterai_py-0.0.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file otterai_py-0.0.2.tar.gz.

File metadata

  • Download URL: otterai_py-0.0.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for otterai_py-0.0.2.tar.gz
Algorithm Hash digest
SHA256 48b3e058e8a831b9a3da05b0eebd5e5d8d9db673a4de9a8506eb9ea8d8ca8309
MD5 0859020fa93f5d49bee90ea9c017becc
BLAKE2b-256 43565009068b837d93f6ee1b91bab126f2f9f746ac5e473f828dcf37cc636046

See more details on using hashes here.

File details

Details for the file otterai_py-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: otterai_py-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for otterai_py-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 176a569c191494725ad69f1fa14e46c9eb7ecdb03d1661eed711b1aff50e9e88
MD5 d962a89ac46bf76523095e6bf4ac6255
BLAKE2b-256 916805fc09e5b18c2836b4fb1aa38b76a3bf4499edd8870a0b00a70cd0efc3c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page