Hi,
I created a playlist created with 3 TAF files and assigned it to a Tonie. Even after several resets, the Tonie plays its original content.
Any ideas how to fix this?
Hi,
I created a playlist created with 3 TAF files and assigned it to a Tonie. Even after several resets, the Tonie plays its original content.
Any ideas how to fix this?
Have you done a freshnesscheck? What are the docker logs saying? Can you post the tap JSON.
How 1st and 3rd?
I can post the logs when I find time for testing
Freshnesscheck: press an ear of your toniebox for some seconds with no tonie placed.
Docker logs you know
JSON is the definition of your playlist. The tap file itself.
Freshnescheck was done multiple times.
Here’s the playlists json:
{
"type": "tap",
"audio_id": "1",
"filepath": "/",
"name": "Conni EInkaufen Kindergarten Töpfchen",
"files": [
{
"filepath": "lib://Conni geht einkaufen.taf",
"name": "Conni geht einkaufen.taf"
},
{
"filepath": "lib://Conni EInkaufen Töpfchen Kindergarten.taf",
"name": "Conni EInkaufen Töpfchen Kindergarten.taf"
},
{
"filepath": "lib://Conni geht aufs Töpfchen.taf",
"name": "Conni geht aufs Töpfchen.taf"
}
]
}
And here the docker container log:
Shadow bytes around the buggy address:
0x0c04803085e0: fa fa fd fd fa fa fd fd fa fa 00 fa fa fa fd fa
0x0c04803085f0: fa fa fd fa fa fa fd fd fa fa fd fa fa fa fd fd
0x0c0480308600: fa fa fd fa fa fa fd fa fa fa fd fa fa fa fd fd
0x0c0480308610: fa fa fd fa fa fa fd fd fa fa fd fa fa fa fd fd
0x0c0480308620: fa fa fd fa fa fa 04 fa fa fa 02 fa fa fa 02 fa
=>0x0c0480308630: fa fa 02 fa fa fa 06 fa[fa]fa fa fa fa fa fa fa
0x0c0480308640: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480308650: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480308660: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480308670: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0480308680: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==8==ABORTING
[aost#0:0/pcm_s16le @ 0x55d21d52a580] Error submitting a packet to the muxer: Broken pipe
[out#0/s16le @ 0x55d21d51d380] Error muxing a packet
[out#0/s16le @ 0x55d21d51d380] Error writing trailer: Broken pipe
[out#0/s16le @ 0x55d21d51d380] Error closing file: Broken pipe
[out#0/s16le @ 0x55d21d51d380] video:0kB audio:213kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
size= 201kB time=00:00:01.61 bitrate=1021.9kbits/s speed=19.3x
TeddyCloud v0.6.2 (203f12d) - 2024-10-26 18:14:34 +0000 ubuntu linux-x86_64(64)
INFO |settings.c:0848:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/ca-root.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
ERROR|tls_adapter.c:0189:read_certificate| Failed to open '/teddycloud/certs/client/d43639xxxxxx/ca.der' for cert type detection
ERROR|tls_adapter.c:0376:load_cert| Loading cert '/teddycloud/certs/client/d43639xxxxxx/ca.der' failed
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/d43639xxxxxx/client.der' detected as DER style CERTIFICATE
ERROR|tls_adapter.c:0189:read_certificate| Failed to open '/teddycloud/certs/client/d43639xxxxxx/private.der' for cert type detection
ERROR|tls_adapter.c:0376:load_cert| Loading cert '/teddycloud/certs/client/d43639xxxxxx/private.der' failed
INFO |settings.c:0848:settings_load_ovl| Load settings from /teddycloud/config/config.ini
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/ca-root.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/client.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/client/private.der' detected as DER style RSA PRIVATE KEY
INFO |settings.c:0848:settings_load_ovl| Load settings from /teddycloud/config/config.overlay.ini
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/ca-root.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
ERROR|tls_adapter.c:0189:read_certificate| Failed to open '/teddycloud/certs/client/d43639xxxxxx/ca.der' for cert type detection
ERROR|tls_adapter.c:0376:load_cert| Loading cert '/teddycloud/certs/client/d43639xxxxxx/ca.der' failed
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/d43639xxxxxx/client.der' detected as DER style CERTIFICATE
ERROR|tls_adapter.c:0189:read_certificate| Failed to open '/teddycloud/certs/client/d43639xxxxxx/private.der' for cert type detection
ERROR|tls_adapter.c:0376:load_cert| Loading cert '/teddycloud/certs/client/d43639xxxxxx/private.der' failed
INFO |tls_adapter.c:0390:tls_adapter_init| Loading certificates...
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/ca-root.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0204:read_certificate| File '/teddycloud/certs/server/teddy-cert.pem' assumed PEM style
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/ca.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0197:read_certificate| File '/teddycloud/certs/client/client.der' detected as DER style CERTIFICATE
INFO |tls_adapter.c:0201:read_certificate| File '/teddycloud/certs/client/private.der' detected as DER style RSA PRIVATE KEY
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 5078931
INFO |toniesJson.c:0100:tonies_update| Updating tonies.json from api.revvox.de...
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server api.revvox.de:443...
INFO |cloud_request.c:0252:web_request| trying IP: 157.90.183.226
INFO |cloud_request.c:0382:web_request| Redirecting to: https://raw.githubusercontent.com/toniebox-reverse-engineering/tonies-json/release/tonies.json
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server raw.githubusercontent.com:443...
INFO |cloud_request.c:0252:web_request| trying IP: 185.199.111.133
INFO |toniesJson.c:0124:tonies_update| ... success updating tonies.json from api.revvox.de, reloading
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 5078931
INFO |toniesJson.c:0211:tonieboxes_update| Updating tonies.json from api.revvox.de...
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server api.revvox.de:443...
INFO |cloud_request.c:0252:web_request| trying IP: 157.90.183.226
INFO |cloud_request.c:0382:web_request| Redirecting to: https://raw.githubusercontent.com/toniebox-reverse-engineering/tonies-json/release/tonieboxes.json
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server raw.githubusercontent.com:443...
INFO |cloud_request.c:0252:web_request| trying IP: 185.199.108.133
INFO |toniesJson.c:0238:tonieboxes_update| ... success updating tonieboxes.json from api.revvox.de, reloading
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.custom.json with size 2
INFO |toniesJson.c:0280:tonies_readJson| Trying to read /teddycloud/config/tonies.json with size 5078931
INFO |server.c:0959:server_init| 1 open HTTPS API connections
INFO |mqtt.c:0699:mqtt_init_box| Registered new box 'Toniebox' (cn: 'D43639xxxxxx')
INFO |mqtt.c:0700:mqtt_init_box| Using base path 'teddyCloud/box/D43639xxxxxx' and id 'teddyCloud_Box_D43639xxxxxx'
The first filepath is wrong, add a filename also
It’s the generated json from TeddyCloud. What should I set there for the file path?
Any name you want. Like “lib://bitsundso.taf”, it’s the name of the taf file to be created. The wiki entry might be improved and the form also, but it’s as stated still a wip (and on hold currently)
I really don’t understand this.
I tried it with this:
{
"type": "tap",
"audio_id": "1",
"filepath": "lib://conni.taf",
"name": "Conni EInkaufen Kindergarten Töpfchen.tap",
"files": [
{
"filepath": "lib://Conni geht einkaufen.taf",
"name": "Conni geht einkaufen.taf"
},
{
"filepath": "lib://Conni EInkaufen Töpfchen Kindergarten.taf",
"name": "Conni EInkaufen Töpfchen Kindergarten.taf"
},
{
"filepath": "lib://Conni geht aufs Töpfchen.taf",
"name": "Conni geht aufs Töpfchen.taf"
}
]
}
But this causes a red light flashing and the box seem to crash
Can you try this, audio id without quotes.
{
"type": "tap",
"audio_id": 1,
"filepath": "lib://conni.taf",
"name": "Conni EInkaufen Kindergarten Töpfchen.tap",
"files": [
{
"filepath": "lib://Conni geht einkaufen.taf",
"name": "Conni geht einkaufen.taf"
},
{
"filepath": "lib://Conni EInkaufen Töpfchen Kindergarten.taf",
"name": "Conni EInkaufen Töpfchen Kindergarten.taf"
},
{
"filepath": "lib://Conni geht aufs Töpfchen.taf",
"name": "Conni geht aufs Töpfchen.taf"
}
]
}
You may also try to use the develop version as I am not sure when the taf file support within the tap was added.
Same issue. I combined all parts of each episode to one mp3 each and then encode them to a single taf. This works well, for now
You could also just added all mp3 to the audio encoder. Combine them first to a mp3 is nit necessary.
But still weird why it is not working.
Yes. But I wanted to be able to change the episode when slapping the box instead of going to the next chapter. That’s what playlist should do as well, if I’m correct.
Yes but only because the chapters of a taf gone lost when used in a tap
I know. My daughter doesn’t slap the box hard enough to be able to do something but she wants her favorite 3 audio books, so now it’s easier for me to shuffle through the episodes
Welcome to the club. Happens to me as well. Taps are not working at all on my Toniebox 3235 and lead to a crash/reboot of the Toniebox.
There is already a ticket on github:
Unfortunately, the bug is still not fixed and unfortunately I can’t use the workaround of using the audio encoder function in the web interface of the TeddyCloud server. It can only handle mp3 files.
Does anyone know another way how I can merge my existing TAF files?
You can use Opus2Tonie for the conversion. Here are instructions how to set it up. Or you can just use the small docker container I built for this usecase.
If you split the tafs before joining them to one giant file, you can even keep the chapters of the original tafs. This is not possible with the tap feature. But be aware that there is a limit of 99 chapters per taf.
This is not true. It can handle all audio formats your browser can handle.
Since I have neither a Linux nor a Mac PC, I cannot use the first variant.
The Docker version then runs on my Synology, which of course has less power than my Windows PC.
Is there no way to do this with Windows?
I’ll try your Docker container and hope the CPU load doesn’t get too high.
If I’ve read this correctly, I can do it like this:
MyFavoriteList.lst content:
File1.taf
File2.taf
File3.taf
Command:
docker run --rm -v $(pwd):/data audio2tonie transcode -s /data/MyFavoriteList.lst
Output:
MyFavoriteList.taf (with 3 chapters)
The instructions say " Convert all files from a list MyFavoriteList.lst
(one file per line) into a single taf (with chapters for each line/file)"
What do I have to do to keep the chapters of the original TAF files or deliberately throw them away?
Is there an option for this? I’m afraid that otherwise I’ll reach the 99 limit.