Giter VIP home page Giter VIP logo

Comments (11)

roleoroleo avatar roleoroleo commented on June 9, 2024

Not so easy.
The audio files are played before the hack.
And the file system is a read only squashfs.
I can't overwrite the files without flashing the whole partition.

from sonoff-hack.

alekslyse avatar alekslyse commented on June 9, 2024

You can actually change it /mnt/mtd/ipc/cfg/En.wav - change the wav file to something with no sound. If I remove that file it talk in chinese, even during reboot so the changes are if you put a silent file there you have no voice

from sonoff-hack.

roleoroleo avatar roleoroleo commented on June 9, 2024

And what about the 2nd wav when the connection is done?

from sonoff-hack.

EpicLPer avatar EpicLPer commented on June 9, 2024

Thing is, the WAV file @alekslyse mentioned isn't really a WAV file. It's simply a renamed text file.

The real WAV files are in /mnt/mtd/ipc/app/res/En but they can't be replaced cause the file system is read-only.
Maybe you can make an option script to disable those or replace them with custom sounds @roleoroleo? I wasn't able to figure out how to replace files or mount files from the SD to replace the ones in the read-only memory on bootup.

from sonoff-hack.

roleoroleo avatar roleoroleo commented on June 9, 2024

We could try to turn the volume down.

from sonoff-hack.

alekslyse avatar alekslyse commented on June 9, 2024

yes sorry my fault for not checking. I just did see a wav file and assumed it was the voice. sorry for that

from sonoff-hack.

roleoroleo avatar roleoroleo commented on June 9, 2024

Done:
b9e2852

from sonoff-hack.

EpicLPer avatar EpicLPer commented on June 9, 2024

Gave it a try and it indeed works, nice!
Trying to figure out how to replace the sounds now since the SD Card seems to only get mounted pretty late into the whole boot process so trying to copy files off of it won't work as easily :(

from sonoff-hack.

EpicLPer avatar EpicLPer commented on June 9, 2024

Managed to do it now! Had to mount the SD Card directly in the boot.sh for a short while, then copy the files over, then umount it again. Works now :D

https://twitter.com/EpicLPer/status/1319674142036283392

from sonoff-hack.

roleoroleo avatar roleoroleo commented on June 9, 2024

The sd is mounted in a temporary folder (/var/sdcard if I remember correctly).
You could copy the file from /var/sdcard to /tmp and then use mount --bind.

from sonoff-hack.

cjonhammar avatar cjonhammar commented on June 9, 2024

Working fine in 0.09 Thanks a bunch!

from sonoff-hack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.