Commit graph

4440 commits

Author SHA1 Message Date
Paul Gauthier
f481fba1ca set version to 0.37.1-dev 2024-06-04 10:31:28 -07:00
Paul Gauthier
45c8e82228 version bump to 0.37.0 2024-06-04 10:30:49 -07:00
Paul Gauthier
7c834d83cb Updated HISTORY 2024-06-04 10:30:16 -07:00
Paul Gauthier
73c6af8851 aider: Implemented a more flexible approach to handle different microphone sample rates in aider/voice.py.
# Aider chat conversation:

USER: https://github.com/paul-gauthier/aider/issues/612

https://github.com/paul-gauthier/aider/issues/612:

[Skip to content](#start-of-content)

## Navigation Menu

Toggle navigation

[](https://github.com/)

[Sign
in](/login?return_to=https%3A%2F%2Fgithub.com%2Fpaul-gauthier%2Faider%2Fissues%2F612)

-   Product

    -   [](https://github.com/features/actions)

        Actions

        Automate any workflow

    -   [](https://github.com/features/packages)

        Packages

        Host and manage packages

    -   [](https://github.com/features/security)

        Security

        Find and fix vulnerabilities

    -   [](https://github.com/features/codespaces)

        Codespaces

        Instant dev environments

    -   [](https://github.com/features/copilot)

        GitHub Copilot

        Write better code with AI

    -   [](https://github.com/features/code-review)

        Code review

        Manage code changes

    -   [](https://github.com/features/issues)

        Issues

        Plan and track work

    -   [](https://github.com/features/discussions)

        Discussions

        Collaborate outside of code

    Explore
    -   [All features](https://github.com/features)
    -   [Documentation](https://docs.github.com)
    -   [GitHub Skills](https://skills.github.com)
    -   [Blog](https://github.blog)

-   Solutions

    For
    -   [Enterprise](https://github.com/enterprise)
    -   [Teams](https://github.com/team)
    -   [Startups](https://github.com/enterprise/startups)
    -   [Education](https://education.github.com)

    By Solution
    -   [CI/CD & Automation](https://github.com/solutions/ci-cd)
    -   [DevOps](https://github.com/solutions/devops)
    -   [DevSecOps](https://resources.github.com/devops/fundamentals/devsecops)

    Resources
    -   [Learning Pathways](https://resources.github.com/learn/pathways)
    -   [White papers, Ebooks, Webinars](https://resources.github.com)
    -   [Customer Stories](https://github.com/customer-stories)
    -   [Partners](https://partner.github.com)

-   Open Source

    -   [](/sponsors)

        GitHub Sponsors

        Fund open source developers

    -   [](https://github.com/readme)

        The ReadME Project

        GitHub community articles

    Repositories
    -   [Topics](https://github.com/topics)
    -   [Trending](https://github.com/trending)
    -   [Collections](https://github.com/collections)

-   Enterprise

    -   [](/enterprise)

        Enterprise platform

        AI-powered developer platform

    Available add-ons
    -   [](https://github.com/enterprise/advanced-security)

        Advanced Security

        Enterprise-grade security features

    -   [](/features/copilot#enterprise)

        GitHub Copilot

        Enterprise-grade AI features

    -   [](/premium-support)

        Premium Support

        Enterprise-grade 24/7 support

-   [Pricing](https://github.com/pricing)

Search or jump to\...

# Search code, repositories, users, issues, pull requests\...

Search

Clear

[Search syntax
tips](https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax)

# Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

# Saved searches

## Use saved searches to filter your results more quickly

Name

Query

To see all available qualifiers, see our
[documentation](https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax).

Cancel

Create saved search

[Sign
in](/login?return_to=https%3A%2F%2Fgithub.com%2Fpaul-gauthier%2Faider%2Fissues%2F612)

[Sign
up](/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=paul-gauthier%2Faider)

You signed in with another tab or window. [Reload]() to refresh your
session. You signed out in another tab or window. [Reload]() to refresh
your session. You switched accounts on another tab or window. [Reload]()
to refresh your session.

Dismiss alert

{{ message }}

::: {role="main"}

[paul-gauthier](/paul-gauthier) / **[aider](/paul-gauthier/aider)**
Public

-   [Notifications](/login?return_to=%2Fpaul-gauthier%2Faider) You must
    be signed in to change notification settings

-   [Fork 1k](/login?return_to=%2Fpaul-gauthier%2Faider)

-

    [ Star 10.5k](/login?return_to=%2Fpaul-gauthier%2Faider)

-   [Code ](/paul-gauthier/aider)
-   [Issues 57](/paul-gauthier/aider/issues)
-   [Pull requests 14](/paul-gauthier/aider/pulls)
-   [Actions ](/paul-gauthier/aider/actions)
-   [Projects 0](/paul-gauthier/aider/projects)
-   [Security](/paul-gauthier/aider/security)
-   [Insights ](/paul-gauthier/aider/pulse)

Additional navigation options

-   [ Code ](/paul-gauthier/aider)
-   [ Issues ](/paul-gauthier/aider/issues)
-   [ Pull requests ](/paul-gauthier/aider/pulls)
-   [ Actions ](/paul-gauthier/aider/actions)
-   [ Projects ](/paul-gauthier/aider/projects)
-   [ Security ](/paul-gauthier/aider/security)
-   [ Insights ](/paul-gauthier/aider/pulse)

New issue

**Have a question about this project?** Sign up for a free GitHub
account to open an issue and contact its maintainers and the community.

[Sign up for
GitHub](/signup?return_to=%2Fpaul-gauthier%2Faider%2Fissues%2Fnew%2Fchoose)

By clicking "Sign up for GitHub", you agree to our [terms of
service](https://docs.github.com/terms) and [privacy
statement](https://docs.github.com/privacy). We'll occasionally send you
account related emails.

Already on GitHub? [Sign
in](/login?return_to=%2Fpaul-gauthier%2Faider%2Fissues%2Fnew%2Fchoose)
to your account

[Jump to bottom](#issue-comment-box)

# Unsupported Audio Sample Rate #612

Open

[aaronson2012](/aaronson2012) opened this issue May 24, 2024 · 0
comments

Open

# [Unsupported Audio Sample Rate](#top) #612

[aaronson2012](/aaronson2012) opened this issue May 24, 2024 · 0
comments

Labels

[enhancement](/paul-gauthier/aider/labels/enhancement) New feature or
request

## Comments

[](/aaronson2012)

Copy link

###

**[aaronson2012](/aaronson2012)** commented [May 24,
2024](#issue-2314049815)

+-----------------------------------------------------------------------+
| ### Issue                                                             |
|                                                                       |
| aider was crashing when i ran the /voice command and I realized that  |
| my computers microphone did not support a sample rate of 16kHz. It    |
| was an easy fix for me i just changed the sample_rate variable to one |
| my mic supported but this isn\'t a very elegant solution. Could there |
| be a better way so all mics are supported?                            |
|                                                                       |
| ### Version and model info                                            |
|                                                                       |
| Latest verision                                                       |
+-----------------------------------------------------------------------+
|                                                                       |
|                                                                       |
| The text was updated successfully, but these errors were encountered: |
|                                                                       |
|                                                                       |
+-----------------------------------------------------------------------+

All reactions

[paul-gauthier](/paul-gauthier) added the
[enhancement](/paul-gauthier/aider/labels/enhancement) New feature or
request label [Jun 4, 2024](#event-13039727805)

[Sign up for free](/join?source=comment-repo) **to join this
conversation on GitHub**. Already have an account? [Sign in to
comment](/login?return_to=https%3A%2F%2Fgithub.com%2Fpaul-gauthier%2Faider%2Fissues%2F612)

Assignees

No one assigned

Labels

[enhancement](/paul-gauthier/aider/labels/enhancement) New feature or
request

Projects

None yet

Milestone

No milestone

Development

No branches or pull requests

2 participants

:::

## Footer

[](https://github.com) © 2024 GitHub, Inc.

### Footer navigation

-   [Terms](https://docs.github.com/site-policy/github-terms/github-terms-of-service)
-   [Privacy](https://docs.github.com/site-policy/privacy-policies/github-privacy-statement)
-   [Security](https://github.com/security)
-   [Status](https://www.githubstatus.com/)
-   [Docs](https://docs.github.com/)
-   [Contact](https://support.github.com?tags=dotcom-footer)
-   Manage cookies
-   Do not share my personal information

You can't perform that action at this time.

ASSISTANT: Based on the issue description, I believe the following file is most likely to need changes to support different microphone sample rates:

aider/voice.py

This file contains the Voice class which handles recording and transcribing audio. The sample_rate variable is hardcoded in this file.

To make the suggested change, we would need to modify how the sample rate is determined in aider/voice.py.

Please add aider/voice.py to the chat so I can propose the specific code changes needed. Let me know if you would like me to explain my reasoning further or if you have any other questions!

USER: I added these files to the chat: aider/voice.py.

If you need to propose edits to other existing files not already added to the chat, you *MUST* tell the me their full path names and ask me to *add the files to the chat*. End your reply and wait for my approval. You can keep asking if you then decide you need to edit more files.

ASSISTANT: Here are the proposed changes to aider/voice.py to support different microphone sample rates:

aider/voice.py
```python
<<<<<<< SEARCH
        sample_rate = 16000  # 16kHz
=======
        try:
            sample_rate = int(self.sd.query_devices(None, 'input')['default_samplerate'])
        except (TypeError, ValueError):
            sample_rate = 16000  # fallback to 16kHz if unable to query device
>>>>>>> REPLACE
```

This change:

1. Attempts to query the default sample rate of the input device using sounddevice's `query_devices()` function.
2. If successful, it uses that sample rate.
3. If it fails to get a valid sample rate, it falls back to the original 16kHz.

This should allow aider to automatically adapt to the microphone's supported sample rate in most cases, while still having a reasonable fallback.

Let me know if you would like me to explain or modify the changes further.
2024-06-04 10:27:22 -07:00
Paul Gauthier
65703190a2 Updated HISTORY 2024-06-04 09:55:31 -07:00
Paul Gauthier
8c91a909b9 copy 2024-06-04 05:40:34 -07:00
Paul Gauthier
8a95ce80ae copy 2024-06-03 12:21:09 -07:00
Paul Gauthier
5d08c69ba0 copy 2024-06-03 11:23:22 -07:00
Paul Gauthier
a0025a42d9 copy 2024-06-03 11:23:12 -07:00
Paul Gauthier
58bcfc3f6e copy 2024-06-03 11:21:12 -07:00
Paul Gauthier
b184ab9977 copy 2024-06-03 11:16:34 -07:00
Paul Gauthier
0d06364db6 copy 2024-06-03 11:14:17 -07:00
Paul Gauthier
8a8f3936f4 copy 2024-06-03 11:12:25 -07:00
Paul Gauthier
4770e0ffc0 pass@1 2024-06-03 10:55:07 -07:00
Paul Gauthier
4753db0b0f copy 2024-06-03 05:42:45 -07:00
Paul Gauthier
3ff0c7ce35 copy 2024-06-02 09:28:56 -07:00
Paul Gauthier
57252c766d copy 2024-06-02 06:41:48 -07:00
Paul Gauthier
ad320e085d copy 2024-06-02 06:28:56 -07:00
Paul Gauthier
e5c831d1b6 copy 2024-06-01 19:01:47 -07:00
Paul Gauthier
941456d586 copy 2024-06-01 19:00:13 -07:00
Paul Gauthier
2cb9a8ddc8 copy 2024-06-01 16:10:55 -07:00
Paul Gauthier
47a3cb8adf copy 2024-06-01 15:05:29 -07:00
Paul Gauthier
2febc663f3 copy 2024-06-01 14:48:12 -07:00
Paul Gauthier
70411431ab copy 2024-06-01 13:49:31 -07:00
Paul Gauthier
bc4d39ddf2 copy 2024-06-01 11:46:53 -07:00
Paul Gauthier
26edbcc8f1 copy 2024-06-01 11:26:16 -07:00
Paul Gauthier
fcc62ebffc copy 2024-06-01 07:34:30 -07:00
Paul Gauthier
07d36b22c0 copy 2024-06-01 07:23:25 -07:00
Paul Gauthier
1b539e4466 rename 2024-06-01 07:04:12 -07:00
Paul Gauthier
7623b8e2e6 copy 2024-06-01 07:03:58 -07:00
Paul Gauthier
871bdc8c9a copy 2024-06-01 06:21:04 -07:00
Paul Gauthier
7889a91e9d aider: Fixed inconsistent verb tenses in the article.
# Aider chat conversation:

USER: fix any of the writing where the tense is inconsistent

ASSISTANT: Here are the changes to fix inconsistent verb tenses in the article:

_posts/2024-05-31-both-swe-bench.md
```markdown
<<<<<<< SEARCH
Aider intentionally has quite limited and narrow "agentic behavior"
to avoid long delays, high token costs
and the need for users to repeatedly code review incorrect solutions.
It's also worth noting that aider currently does not use
RAG, vector search, tools or give the LLM access to search the web
or unilaterally execute code.
=======
Aider intentionally has quite limited and narrow "agentic behavior"
to avoid long delays, high token costs
and the need for users to repeatedly code review incorrect solutions.
It's also worth noting that aider currently does not use
RAG, vector search, tools or give the LLM access to search the web
or unilaterally execute code.
>>>>>>> REPLACE
```

_posts/2024-05-31-both-swe-bench.md
```markdown
<<<<<<< SEARCH
Aider provides a pair programming UX where users can ask for a change
and see the edits performed in real-time.
Aider can also offer additional help like fixing lint or test errors,
but the user is always in full interactive control.
This lets them quickly steer misunderstandings back on course and
avoid wasting time and token costs.
=======
Aider provides a pair programming UX where users can ask for a change
and see the edits performed in real-time.
Aider can also offer additional help like fixing lint or test errors,
but the user is always in full interactive control.
This allows them to quickly steer misunderstandings back on course and
avoid wasting time and token costs.
>>>>>>> REPLACE
```

_posts/2024-05-31-both-swe-bench.md
```markdown
<<<<<<< SEARCH
Aider may not have resolved such issues, and yet they may not to be
relevant to the acceptance testing.
=======
Aider may not have resolved such issues, and yet they may not be
relevant to the acceptance testing.
>>>>>>> REPLACE
```

The changes make the following improvements:

1. In the first change, all verbs are consistently in the present tense.

2. In the second change, "lets" is changed to "allows" to maintain the present tense.

3. In the third change, "to be" is removed to fix the grammar.

Let me know if you would like me to make any other changes!
2024-06-01 05:58:25 -07:00
Paul Gauthier
6094104b6c copy 2024-06-01 05:54:11 -07:00
Paul Gauthier
f16e741bcb copy 2024-05-31 16:59:15 -07:00
Paul Gauthier
83081a5e6f copy 2024-05-31 15:28:34 -07:00
Paul Gauthier
6a2d7e08c2 copy 2024-05-31 13:32:20 -07:00
Paul Gauthier
2c6b472946 copy 2024-05-31 11:28:38 -07:00
Paul Gauthier
676b644df4 aider: Added more whitespace below the graph to give more room for the note.
# Aider chat conversation:

USER: add more white space below the graph, to give more room for the note

ASSISTANT: Here is the change to add more white space below the graph:

benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
    plt.tight_layout(pad=3.0)
=======
    plt.tight_layout(pad=3.0, rect=[0, 0.05, 1, 1])
>>>>>>> REPLACE
```

This adjusts the `tight_layout` call to reserve 5% of the figure height at the bottom for the note, using the `rect` parameter. The `rect` tuple specifies the left, bottom, right and top of the area the subplots should occupy as a fraction of figure width and height.
2024-05-31 11:26:27 -07:00
Paul Gauthier
7fe697c1df copy 2024-05-31 11:23:13 -07:00
Paul Gauthier
38ac9de678 use underscores in graph fnames 2024-05-31 09:44:33 -07:00
Paul Gauthier
0120d434ff added draft article 2024-05-31 09:33:31 -07:00
Paul Gauthier
a168daf5fc Merge branch 'main' into both-swe-bench 2024-05-31 09:28:53 -07:00
Paul Gauthier
5e9bf8993d copy 2024-05-31 09:28:42 -07:00
Paul Gauthier
c76215f302 copy 2024-05-31 08:16:56 -07:00
Paul Gauthier
639121bb45 full swe bench graph 2024-05-31 08:16:49 -07:00
Paul Gauthier
20ee2bbf36 aider: Increase white space at the bottom of the plot to make room for the note by adjusting the plt.tight_layout call to include more padding.
# Aider chat conversation:

USER: add some white space at the bottom to make more room for the note

ASSISTANT: To add more white space at the bottom of the plot to make room for the note, we can adjust the `plt.tight_layout` call to include more padding.

Here is the *SEARCH/REPLACE* block:

benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
    plt.tight_layout(pad=3.0)
=======
    plt.tight_layout(pad=5.0)
>>>>>>> REPLACE
```
2024-05-31 07:44:28 -07:00
Paul Gauthier
8bcebfa475 Added a note at the bottom of the graph in swe_bench_lite.py. 2024-05-31 07:44:27 -07:00
Paul Gauthier
ffec28cc15 aider: Added note at the bottom of the graph explaining the number of instances processed by the agent.
# Aider chat conversation:

USER: no, add it to the bottom of the graph

ASSISTANT: To add a note at the bottom of the graph explaining that (570) and (2294) refer to the number of instances processed by the agent, we can use the `text` function from Matplotlib to place the note at the bottom of the plot.

Here is the *SEARCH/REPLACE* block to make this change:

benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
ax.xaxis.label.set_color(font_color)
=======
ax.xaxis.label.set_color(font_color)

# Add note at the bottom of the graph
note = "(570) and (2294) refer to the number of instances that were processed by the agent."
plt.figtext(0.5, 0.01, note, wrap=True, horizontalalignment='center', fontsize=10, color=font_color)
>>>>>>> REPLACE
```
2024-05-31 07:42:33 -07:00
Paul Gauthier
d017b9b23f aider: Add note explaining that (570) and (2294) refer to the number of instances processed by the agent.
# Aider chat conversation:

USER: add a note at the bottom that explains that (570) and (2294) refer to the number of instances that were processed by the agent

ASSISTANT: Here is the change to add a note at the bottom of the script explaining that (570) and (2294) refer to the number of instances processed by the agent.

benchmark/swe_bench_lite.py
```python
<<<<<<< SEARCH
ax.xaxis.label.set_color(font_color)
=======
ax.xaxis.label.set_color(font_color)

# Note: (570) and (2294) refer to the number of instances that were processed by the agent.
>>>>>>> REPLACE
```
2024-05-31 07:42:18 -07:00
Paul Gauthier
4d02a8aa58 Refactored plot_swe_bench_lite function to dynamically handle file names and titles. 2024-05-31 07:42:17 -07:00