News for hackers. Stuff that matters.

mesadb

Some implementation details, since getting this to work well was not trivial.

My goal was “press hotkey, start talking, see text within ~1–2 seconds” on an M2 MacBook Pro, and support multiple languages.

First attempts (cloud) – I tried Hugging Face real-time transcription. It worked but latency was all over the place and costs would not scale. – I tried OpenAI real-time transcription. Latency was better, but when there was background noise, it'd transcribe wrong things. Saw 200ms responses. I can bring that back if I can make it stable. – I briefly experimented with Gemini for transcribing and formatting multi-language text. Quality was not consistent enough compared to Whisper for Multi language.

Local experiments – I used FFmpeg + Whisper CLI in a bunch of ways: batching, buffering, trying to “stream” partial results out of Whisper to make it feel live. – I also tried a local Llama model to format the raw transcript into an email. On an M2 Pro this took ~2 seconds for short emails and got much slower for long text. It looked nice but the latency was not acceptable for everyday use.

Where I ended up (for now) – Current version sticks to FFmpeg + Whisper CLI locally, optimized for short chunks so you usually see text within about 1–2 seconds. – I dropped the heavy on-device LLM formatting and keep the formatting logic much simpler so it stays predictable and fast.

Next step is to re-introduce “smart” formatting and meeting notes, but only when I can do it without blowing up latency. Happy to dig deeper into any of these if people are curious.

Show HN: Slave – local dictation and TTS for macOS (3k words free)

https://www.slave.bot/

Slave is a macOS app for voice-in, voice-out.Dictate in most languages. Types into any app.Listen back with local Piper TTS.3,000 words free. Then $6.99/month.Next: joins meetings, transcribes, writes short notes. Later: lightweight Obsidian-style notes built from your text.Built on Whisper + Piper. Runs on your machine.Feedback on UX, speed, and pricing is welcome.

( Read More... | 1 comment | 2 points | on HN )

Show HN: Effortlessly Record and Export API Calls to Postman – Free

https://dev.tools/

Hi HN,We’ve built a Chrome extension that we believe will greatly simplify the workflow for developers, QA engineers, and anyone involved in API testing. Our tool automatically captures all API calls made by your web application and exports them to Postman with a single click. Here’s why we think this could be a game-changer:- Automatic API Recording: No more manual tracking of API calls. Our...

( Read More... | no comments | 2 points | on HN )
Re: on Wednesday June 15, 2022 @01:49PM (#31756607)
What do you think about this pricing? Is it fair?

Ask HN: Requesting Pricing Feedback for a Developer Tool

Hey HN,I have been roasted by the HN community before on this topic. So I'm trying to learn from the mistakes I've made.We came up with a new pricing plan for Automated web testing. I need your advice on what you think about this plan.https://preflight.com/pricingHere is the google sheet format. It may be easier to...

( Read More... | no comments | on HN )
Re:Play with TailwindCSS in the Browser on Monday June 13, 2022 @01:01AM (#31721371)
I think windicss might be better than tailwind. I'm using tailwind but I think the structure on windi is pretty good
I second this. I think playwright and cypress are the main ones you should use. We already implemented something for Cypress and looking to do the same thing for Playwright. It'll be pretty similar to this: cypress.preflight.com

Would love to get your feedback so we can add it :)

I have heard of this actually. It's a nice open source tool. But it doesn't have AI selectors no?
Can I get your feedback on preflight.com vs Datadog?
That sounds awful I'm sorry :D

I'll drop you an email when we are able to launch it. Would love to get your feedback

100% agree but I still think there are still people using Selenium. I think we could help people navigate to Cypress or Playwright or no-code solutions
I really like playwright's locators as well. It looks pretty cool. We actually have a Cypress POM generator tool which uses AI and let's you test emails etc: https://cypress.preflight.com/
Hi, we actually have done this for Cypress. I'd love to get your feedback on it: https://cypress.preflight.com/
We actually do observe the DOM and we should expect new objects on the page.

We do this on a different side of our product which we try to come up with test coverage from how your users use your app.

Sorry, I didn't want to make the title too long.

I think there still too many companies using Java and Selenium. No?

This is actually very interesting. I like how it's done. Very great job.

We also do the same thing but we also understand the box (context) then we can say. We should be on Sign in box and a button called Sign in should be present. If we are on a different page and we cannot find something similar to it, we will give better error messages. Like: we should have been on Sign in page but we are on sign up. etc.

Ask HN: Would you be interested in POM generator for Selenium?

I have some plans to implement a POM and script generator for Selenium which includes multiples selectors and uses some AI selectors.It will work this way: - Go to the page you want the POM for - Open the chrome extension - Click on generate POM - We will generate POM - You can add/remove some sectionsSome other benefits might come with it is Email and PDF testing for Selenium.Curious what...

( Read More... | 34 comments | 20 points | on HN )
Hi HN,

Flaky tests are pretty annoying. So, we have developed this to help all QA engineers.

This recorder creates a plain script. But we will release generating POM models from a web page you are on.

It's also super easy to test Emails. Visual testing is coming soon.

Let me know what you think

We have bird slots like: Canary, Eagle, Owl etc. When there is a PR according to its order it gets deployed to one of them.

Then we have preflight.com UI tests that run on those environments. Would love to tell you my experience.

Re:Playwright: Automate Chromium, WebKit and Firefox on Monday January 31, 2022 @08:37PM (#30157541)
You are right every testing solutions out there push UIEvents to the page rather than clicking with an actual mouse. That's why puppeteer, selenium etc are scraping tools not testing tools
Re:Playwright: Automate Chromium, WebKit and Firefox on Monday January 31, 2022 @08:34PM (#30157521)
We are also in the space. Manual testing is definitely time consuming. You can automate your manual testing with https://preflight.com

Would love to help any of your testing needs

Re:Playwright: Automate Chromium, WebKit and Firefox on Monday January 31, 2022 @08:31PM (#30157493)
You can now generate puppeteer code from Google Chrome Recorder. You should check it out. But still it might be flaky.

No-code is the best in my opinion :D https://preflight.com

We have done all the ground work. Like: - Concurrency - Adapt to the changes. Our selectors are like this: "Click on 'Login' button in the 'Sign in' form" - Update the tests with an HTML/Video player etc

Re:Playwright: Automate Chromium, WebKit and Firefox on Monday January 31, 2022 @08:26PM (#30157456)
I think the issue here is Selenium or Playwright they depend on Selectors which depends on UI. And when there is a change it breaks the tests. We are working on something to generate you an adapting code (Cypress first) and let you know when there needs to be a change in your test script.

We have an AI model that understands the page structure as humans do. So we can do this "Click on 'Sign in' on the 'Login' page".

We have a no-code tool as well which adapts to the changes. But we want to generate the code for people who want to keep things internally.

Would love to discuss it more: [email protected] Our website: https://preflight.com

Here is a quick overview of Computer Vision click if it's canvas. We automatically understand that for you. https://www.loom.com/share/efc779da15654f098b67c57772cec477

Here is the visual checkpoint (regression): https://www.loom.com/share/b9448ba5e76e410089be6840053a8596

You are right. We learn from our mistakes and I made a mistake.
Hi, the pricing page was not up and I put it on after getting some feedback from the community. It's per month. It was a quick page. I'll update that part.
I expressed that I heard you so I put the pricing up in about an hour ago: https://preflight.com/pricing

Older »