[00:03:32] [discord] easpeak sucks hard, not gonna lie xD [00:03:49] [discord] i was discussing with the admins other solutions [00:03:59] [discord] i found a hybrid online/offline solution [00:04:58] [discord] basically i will use google's text to speak engine that has the major downside of being online, thuse requiering an internet connection at any time to run, which you may not always have while driving [00:05:28] [discord] i made a lil script that tests if the pi has internet and decides what TTS engine to use accordingly [00:06:28] [discord] tbh Navit's really just a backup/plaything for me, so I don't really need to mess with voice. I use OAP 99% of the time I've got this box with me. But it would be kind of nice to get it to a workable state. [00:06:37] [discord] if you want something purely offline, use Pico [00:06:52] [discord] its was android's TTS engine before google took over it [00:07:17] [discord] Pico.. can I just install it and reference it in the xml, or is there more to it? [00:07:32] [discord] with espeak, i would personally not consider it in a working state lol, its pathetic at least for french [00:08:21] [discord] its a bit more complicated. it produces a wav file, and cannot output it directly to stdout, which means you need to call it, play the file then delete the file [00:08:28] [discord] hang on a second [00:11:15] [discord] the exact command you would have to execute for pico is : [00:11:16] [discord] ``pico2wave -l en-US -w /tmp/audio.wav "$1" && aplay -q /tmp/audio.wav && rm /tmp/audio.wav`` [00:11:30] [discord] replace en-US by whatever locale you need [00:12:13] [discord] That seems a little janky.. and it works with Navit? [00:12:19] [discord] yes [00:12:35] [discord] well its not really any janky [00:12:44] [discord] think of it as 3 separate commands [00:12:54] [discord] separated by the && [00:13:34] [discord] the first one creates the file containing your message using pico, this file is saved as audio.wav in the tmp folder [00:13:45] [discord] then aplay plays this file [00:14:04] [discord] and finally, since you dont want the files to add up, you delete it with rm [00:15:07] [discord] I don't see how this automatically reads out turn-by-turn directions while navigating inside of Navit, but as I said, I'm not a programmer [00:15:22] [discord] this happens from the navit.xml file [00:15:47] [discord] whenever a turn instruction is generated by navit, it also calls whatever TTS engine you choose [00:16:16] [discord] look for the speech tag on the file [00:16:18] [discord] Oh, so this line will actually tell Navit itself to run the command to create, play, then remove a wav file for each readout? [00:16:53] [discord] here, it just does a command line call for whatever you give it in the data field [00:17:10] [discord] which can be a script call, or a chain of calls like i just showed you [00:17:22] [discord] Right. I'll give it a try [00:17:31] [discord] the exact command you would have to execute for pico is : [00:17:31] [discord] ``pico2wave -l en-US -w /tmp/audio.wav %s && aplay -q /tmp/audio.wav && rm /tmp/audio.wav`` [00:17:42] [discord] yes, exactly [00:18:00] [discord] Customizing everything else at the moment, too.. I use ozzmaker's guide for some of it, which is pretty good even if you don't use their GPS unit: https://ozzmaker.com/navigating-navit-raspberry-pi/ [00:18:16] [discord] i think you'll need two packages, from what i recall : sox (for playback) and picotts [00:18:25] [discord] yeah i based mine off this too [00:18:44] [discord] i'll change a few things too, i can give it to you when im done if you want [00:19:19] [discord] I'll install those packages, but let me know when you've perfected that pico line [00:20:48] [discord] I couldn't find picotts even with an apt search [00:20:53] [discord] did get sox tho [00:21:14] [discord] its not the exact name, i forgot what it is [00:21:16] [discord] hold on [00:21:41] [discord] its libttspico-utils [00:24:48] [discord] Says it's an obsolete or missing package https://prnt.sc/17qvo6b [00:24:48] [discord] The closest one I see in search is libttspico-data [00:26:33] [discord] hmm i installed it perfectly on ubuntu 🤔 [00:27:02] [discord] well, I'll try the -data one. Maybe it's integrated into something else? idk [00:27:08] [discord] what if you type [00:27:08] [discord] ``sudo apt install libttspico-`` [00:27:10] [discord] and then double tap TAB for auto completion, what does it give you ? [00:27:16] [discord] nah it shouldnt [00:28:45] [discord] Instantly goes to -data , then another tab and it basically asks if I want to see everything in apt (62950 possibilties) [00:29:44] [discord] hmmm thats anoying [00:30:05] [discord] usually debian and ubuntu have very similar packages [00:30:18] [discord] idk but I installed -data. Might work. [00:32:02] [discord] im seeing someone mentionning libttspico0, can you see this one ? [00:36:02] *** Quits: Horwitz (~mich1@freenode-k6jm3q.haqd.evpr.hujoc9.IP) (Ping timeout: 120 seconds) [00:37:21] [discord] 'apt search pico' returns the following: [00:37:22] [discord] https://cdn.discordapp.com/attachments/500190750085087235/859955806438162452/pico.txt [00:38:12] [discord] RPi can be even harder to work with than general Linux.. some things are just odd, missing, or not working 😦 [00:38:31] [discord] I'm sure if I searched forums hard enough, I'd find someone who had this exact issue [00:38:48] [discord] pico is old for sure [00:38:59] [discord] https://cstan.io/?p=11840&lang=en [00:39:10] [discord] try this guide [00:46:03] [discord] aaaah more compiling [00:46:12] [discord] also, I think I screwed up my Navit xml 🙂 [00:46:55] [discord] ouchie, what happened [00:47:07] [discord] software dev + linux life, my friend 😄 [00:47:45] [discord] ouchie, what happened ? [00:48:08] [discord] well, a reboot helped it run.. but uhh.. I think it doesn't like the map file that was working fine in 0.5.3 [00:48:36] [discord] hmm why ? [00:49:30] *** Joins: Horwitz (~mich1@freenode-f65vg2.mg0r.l642.hujoc9.IP) [00:49:55] [discord] At first, this is what I saw when I started it. Then I started to zoom in and it becomes much clearer, so I guess it has a problem showing any detail at all at max zoom-out? [00:49:55] [discord] https://prnt.sc/17r0mnq [00:50:59] [discord] annnd it crashed [00:51:25] [discord] oh no, its does the same for me [00:51:36] [discord] its just the edges of the zones having trouble to render [00:51:49] [discord] fair enough. the crashing is more of an issue. [00:52:10] [discord] whats on the trace in the terminal . [00:52:13] [discord] whats on the trace in the terminal ? [00:52:29] [discord] [xcb] Unknown sequence number while processing queue [00:52:30] [discord] [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [00:52:31] [discord] [xcb] Aborting, sorry about that. [00:52:32] [discord] navit: ../../src/xcb_io.c:263: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed. [00:52:33] [discord] Aborted [00:53:11] [discord] lmao it even apologize [00:53:41] [discord] thats weird tho, i've had a couples crashes so far, but nothing like this [00:54:07] [discord] I was zooming around my area a bit just to see how it looked, but.. that's kinda what it's for [00:54:36] [discord] btw how would I create a desktop icon to run Navit? idk why they made that so difficult [00:55:30] [discord] nvm just had to change the working directory. got it [00:55:58] [discord] strange [00:56:30] [discord] since the unit will be dedicated to being a gps, you can also just set it to run on boot [00:57:27] [discord] OAP runs on boot. Navit has to be the backup, on command [00:57:36] [discord] OAP runs on boot. Navit has to be the backup, only on command [00:58:18] [discord] In fact, OAP is so heavily integrated, you *have* to download their RPi distro and install it as your base OS in order to get it to work at all [00:58:20] [discord] oh i see [00:58:47] [discord] hmm if its a custom rpi distro it might also expain why pico is missing [00:58:59] [discord] i havnt heard of OAP [01:00:23] [discord] It's not really custom as such.. it updates to the most recent Buster build properly. To be completely honest, I suspect he's just a lazy dev who can't be bothered to make an installer that works on an existing OS :p [01:00:46] [discord] But .. the app is full of ridiculous features, and it just plain works (most of the time) [01:01:07] [discord] :baronfulKermitStare: [01:01:34] [discord] aaah, now I've frozen Navit. Beautiful [01:02:05] [discord] have any screeshots of it ? [01:03:34] [discord] I'll get a shot or two, but I probably couldn't do it the same justice their store page does [01:03:34] [discord] https://bluewavestudio.io/shop/openauto-pro-car-head-unit-solution/ [01:05:34] [discord] oh it includes OBD2 communication as well ? [01:06:07] [discord] dang, it does look sleek indeed [01:06:41] [discord] Yes, and it even integrates with cameras, light sensors, gesture sensors [01:08:01] [discord] thats amazing [01:08:24] [discord] you made me consider it untill i saw a "shop" button lol [01:09:17] [discord] For $29 and free updates for life, I consider it a pittance for what it can do. And I didn't have to compile anything. [01:09:41] [discord] true, its decent [01:11:13] [discord] i'll see how navit compares to my garmin on a pi, and then maybe i'll reconsider other things if i have to make a v2 of this project [01:13:44] [discord] It is literally an Android Auto head unit (among other things).. but I admit I've had a lot of problems keeping my phone connected to it recently. I just had to plug and unplug it 6 times to get it to work now. Think I have to get on their forum and talk about it. [01:13:53] [discord] but this has a big + for me : navit is a free and open source project, so im happy to support it by using it and contributing [01:14:27] [discord] phone compatibility is always hit or miss on such devices [01:14:31] [discord] sadly [01:15:03] *** Quits: j_f-f (~quassel@freenode-3p0.0bl.0e6ebh.IP) (Connection closed) [01:15:38] [discord] It *should* work on all Android devices identically. I have a strong suspicion there's deliberate, artificial micro-"incompatibilities" built-in to some phones. [01:17:59] [discord] https://cdn.discordapp.com/attachments/500190750085087235/859966027599970344/sketch-1625102220229.png [01:18:45] *** Joins: j_f-f (~quassel@freenode-3p0.0bl.0e6ebh.IP) [01:20:28] [discord] true, bluetooth follows a specification so all devices following it should be compatible [01:20:32] [discord] Basically everything runs through Google now, anyway. Garmin base maps are half-based on Google's now instead of the other way around, and if you buy a LMT model with traffic, your best bet of getting traffic data is connecting your phone to the Garmin for LTE traffic data [01:21:04] [discord] Oh, this is direct USB. I'm not even *trying* their WiFi hotspot connect method because USB is already so bad [01:21:22] [discord] Last time I did, my 10,000mAh phone battery lost 70% charge in an hour [01:21:36] [discord] oooof [01:21:56] [discord] i've never had a good experience with usb sharing lol [01:22:35] [discord] i'll try to see if navit has traffic info too [01:22:53] [discord] anyway, its nearly 3:30 am here, im dead tired [01:23:05] [discord] i'll catch you tomorrow if you have more questions [01:28:29] [discord] later [06:52:38] [discord] It should be possible to reduce this to the following: [06:53:25] [discord] It should be possible to reduce this to the following: `pico2wave -l en-US -w - %s | aplay -q -` [06:54:43] [discord] Running it like pico2wave -l en-US -w - %s && aplay -q - does not save to a file and therefor could be more save. The "-" stands normally for stdin/stdout thats why thers a pipe to connect stdout to stdin of aplay [06:55:20] [discord] Running it like `pico2wave -l en-US -w - %s && aplay -q -` does not save to a file and therefor could be more save. The "-" stands normally for stdin/stdout thats why thers a pipe to connect stdout to stdin of aplay [07:03:35] [discord] This is an open bug, right: https://github.com/navit-gps/navit/issues/918 [07:05:17] [discord] Please collect any actuall crashes (no misconfigurations) [07:06:44] [discord] this dosn't seem to be within navit, we dont have xcb... I dont even know what this is [07:45:48] [discord] Running it like `pico2wave -l en-US -w - %s | aplay -q -` does not save to a file and therefor could be more save. The "-" stands normally for stdin/stdout thats why thers a pipe to connect stdout to stdin of aplay [08:59:05] [discord] Damn, i missed something, i thought pico didnt support output to stdout, thanks ! [08:59:41] [discord] Sure thing 👌 [09:13:28] [discord] Already tested it? I think this will work, but I not 100% sure [09:15:01] [discord] I woke up late, i'll try after breakfast ! [10:16:02] [discord] This returns an error : Cannot open output wave file and aplay: read error [10:16:31] [discord] This method works with other TTS engines that output directly to stdout tho [10:17:03] [discord] then try /dev/stdout as output file [10:21:54] [discord] good point [10:22:26] [discord] still cannot open output file [10:22:29] [discord] nice try 😄 [10:25:09] [discord] i as looking at the commands list and couldnt find what i was looking for : is there a command to center the view back to the car ? EG : it was on the car, you pan around and want to go back to the car [10:33:39] [discord] ohhh never mind, there is a timeout feature, smart :p [11:32:25] [discord] pico2wave seem buggy... the file must have .wav at the end, but you can create a symbolic link to fix this. As a Onetime setup: `ln -sf /dev/stdout out.wav` and after that its possible: `pico2wave -l en-US -w out.mav %s | aplay -q -` the difference is that this dosn't write on disk any more [12:12:36] [discord] Yeah thats what i thought about at first, im not a huge fan of continuous writes, especially on an sd card [12:12:57] [discord] Guess who received his pi and screen ? 😍 [12:13:34] [discord] https://cdn.discordapp.com/attachments/500190750085087235/860131005653319700/1625141605257.jpg [12:13:35] [discord] https://cdn.discordapp.com/attachments/500190750085087235/860131006178394112/1625141605263.jpg [12:23:06] *** Quits: genesis (~genesis@freenode-l2d92q.u1nl.47oc.t1mehc.IP) (Quit: Leaving) [12:26:05] *** Joins: genesis (~genesis@freenode-l2d92q.u1nl.47oc.t1mehc.IP) [12:31:39] [discord] Very nice. I like the speakers. Is that a 3B+? [12:37:35] [discord] yes, i opted for the 3B+ [12:37:44] [discord] the speakers are... surprisingly good [12:38:04] [discord] but my car has an aux input, so i'll just use its own speakers instead [12:47:41] [discord] Well, I don't know what to tell you. That's the only error in my terminal when Navit crashed. [13:22:16] [discord] Are you aware of any way to disable USB charging on the Pi's ports? My phone saps too much from mine while plugged in and it starts throttling. Seems like it should be simple, but nobody on the whole internet seems to have a solution [13:44:39] [discord] Cooling installed and modified to be temperature controlled, hardware is ready to go i just need to find my sd card [13:44:39] [discord] https://cdn.discordapp.com/attachments/500190750085087235/860153930473144410/1625147023649.jpg [14:27:38] [discord] Nice. Mine doesn't have a fan, too cramped, but I hope painting it white and sticking fins on the ICs is enough [14:28:47] [discord] Do you have plans to make it more touchscreen friendly? I mostly depend on OAP to be my frontend, but it would be nice if there was a way to make the desktop touchscreen friendly with single-tap icons. Almost impossible to use without a mouse [14:52:58] [discord] the screen is touch already, so i'll just make an OSD with big enough buttons [14:53:15] [discord] should be enough [14:53:47] [discord] i tend to be cooling paranoiac, remenants on the dead GPU sitting on my desk i assume [14:54:16] [discord] i figured since i will be sitting under a windshield during summer it was probably a good idea to go overkill [15:43:57] [discord] Oh, definitely, if it's under glass and around a dark interior [16:17:18] [discord] and well.. it bas a good opportunity to whip out the soldering iron [16:17:24] [discord] couldnt say no to that [20:45:43] [discord] @Bizzmark Alright, i can confirm that this works and will get you a working Pico [21:09:40] [discord] I will note down to include Pico as a additional package for navit. Possible even a small self contained plugin if this seems possible [21:13:01] [discord] good idea :p [21:15:02] [discord] alright, now compiling navit on pi 😄 [21:15:05] [discord] excited [21:16:02] [discord] @Bizzmark when dod you encounter the problem with fonts that lead you to add an argument du the cmake call ? My cmake went perfectly smooth with just the disable qt argument [21:17:41] [discord] @jkoan i'll try making a couple edits on the rtd, which branch should i edit on ? trunk ? [21:20:09] [discord] Yep, that's current. If you are editing a lot of things not related to each other it could help to greate a new branch before and do multiple commits in there before creating the PR [21:20:44] [discord] Ok, i'll just do the QT disable thing for now,before i forget it [21:21:11] [discord] do i have to fork to make edits ? [21:21:58] [discord] or maybe i have to be a contributor first [21:22:13] [discord] See here as well: https://github.com/navit-gps/navit/blob/trunk/CONTRIBUTING.md [21:22:39] [discord] Yes, would be the best [21:23:04] [discord] No, you can start at any time. [21:23:47] [discord] ok, i mainly use git for my own projects so im not too familiar with forks and pull requests, so expect some kinda stupid questions lol [21:27:03] [discord] so... if i get it right : [21:27:03] [discord] - clone the repo (or fork it ?) [21:27:05] [discord] - cd in that directory [21:27:06] [discord] - edit things [21:27:07] [discord] - mkdir a temporary directory [21:27:09] [discord] - from navit repo dir, call the sphinx command so that i can check that changes are ok [21:27:10] [discord] - create a pull request with this commit [21:27:11] [discord] corrects ? [21:27:13] [discord] so... if i get it right : [21:27:14] [discord] - clone the repo (or fork it ?) [21:27:15] [discord] - cd in that directory [21:27:16] [discord] - edit things [21:27:18] [discord] - mkdir a temporary directory [21:27:19] [discord] - from navit repo dir, call the sphinx command so that i can check that changes are ok [21:27:20] [discord] - create a pull request with this commit [21:27:22] [discord] correct ? [21:37:20] [discord] I didn't encounter any problems, but I found that forum post incidentally while looking at Qt errors and decided that adding a reference to something that may or may not intrinsically work in cmake wouldn't hurt [21:39:13] [discord] ohh gotchu, i didnt understand well [21:39:34] [discord] man sd card transfer speeds are bad [21:40:01] [discord] 1+ h left for my map to be copied [21:40:35] [discord] Yes, first fork than clone your fork. Optionally create a new branch (recommend) [21:41:36] [discord] so when i push on my fork it will automatically make the PR ? [21:41:43] [discord] Sometimes for me it was the SD card reader that was slow :D [21:42:16] [discord] hmm it might be. at this point im wondering if i'd be better off just downloading it on the card from the pi again lol [21:42:25] [discord] To be honest, I downloaded my 7.4GB map file directly from a browser in my Pi [21:42:30] [discord] Muuuuch faster [21:42:40] [discord] No, but once you push to your fork GitHub will actually provide a hint how to create the PR [21:44:21] [discord] alright, i usualy use Visual studio code's git integration, are you familiar with it ? (eg : do you know if it will give me the hint from here too ?) [21:44:25] [discord] Hopefully the upcoming Mapserver will even have some way to download without needing a Webbrowser. Probably a nicer http URL scheme and optionally FTP support to be browlable. But it needs to be developed :D [21:45:37] [discord] its pretty good as it is already ! especially now that its working, i had trouble downloading europe last week. Now server 9 and 3 seem to be broken but 6 works perfectly [21:46:21] [discord] If you can see the console output you will see it. But a hint will also be displayed for some time after you pushed a new branch to your fork. The hint should be on the webpage of your fork and navit repo itself [21:46:56] [discord] alright, just do a git status from terminal i guess [21:47:00] [discord] Yes, but we need to rewrite the server Backend software as it's proprietary