
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (70)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (6433)
-
How many "Ruby on Rails" sites can be hosted using sub url in apache configuration file on apache4 with passenger4 on Ubuntu server ?
17 octobre 2013, par user1731249Server's Hardware config :
Ubuntu server 12.04, CPU : dual code (64-bit), RAM : 8GB, Disk : 200GB.Server's Software config :
Apache2, Passenger4, Rails4, ruby2, MySQL.I'm developing a Ruby on Rails website which performs following tasks.
- Upload a series of images as zip.
- Extract zip images to temp directory.
- Convert series of images to video using FFMPEG.
- updating video info in MySQL db
- Viewing the video in HTML5 video tag.
Maximum length of single video being 1min and on an average there may be 50 videos to be converted per day. I created three copies (Don't ask me why !) of same website and hosting three sites as sub-URLs like "example.com" being the domain and example.com/site1, example.com/site2, example.com/site3. Below is the Apache configuration :
RailsAutoDetect offServerName 127.0.0.1
DocumentRoot /home/ubuntuuser/work/public
ErrorDocument 404 /404.html
RailsBaseURI /site1
<directory></directory>home/ubuntuuser/work/site1/advisor/public>
Allow from all
Options -MultiViews
RailsEnv production
RailsBaseURI /site2
<directory></directory>home/ubuntuuser/work/site2/advisor/public>
Allow from all
Options -MultiViews
RailsEnv production
RailsBaseURI /site3
<directory></directory>home/ubuntuuser/work/site3/advisor/public>
Allow from all
Options -MultiViews
RailsEnv production
How many such sites can I host with sub-URLs without big performance drag ?
Also please help to do a performance test for all the sub-URLs. -
Evolution #3336 : Amélioration sitemap.xml.html pour gestion des sites multilingues
21 novembre 2014, par Guillaume FahrnerCi joint le code complet du fichier sitemap.xml.html (j’ai perdu mon compte SVN et du coup je ne peux plus commit). J’ai du modifier la balise urlset comme le préconise google pour ajouter le namespace qui va bien. A part ca rien de bien fou, deux boucles traductions pour les rubriques et les articles en plus permettant d’ajouter les liens de traductions au sitemap.
[(#REM)
Exemple tres simple de sitemap.xml accessible via URL_SITE_SPIP/sitemap.xml
(copier htaccess.txt en .htaccess pour en beneficier)Ce sitemap affiche la liste des rubriques, breves et articles, en se limitant a 1000 rubriques, 1000 breves et 2000 articles pour des raisons
de performances.Duree de reindexation et priorite ne sont pas precisees,
sauf pour l’accueil.Mais si date_modif est recente (1 jour) on l’indique, pour que ce
soit reindexe en priorite(On pose un cache a zero pour echapper au test _IS_BOT)
]#CACHE0
#HTTP_HEADERContent-Type : text/xml ; charset=utf-8
< ?xml version="1.0" encoding="UTF-8" ?>
[(#REM) Accueil]
#URL_SITE_SPIP/
hourly
[(#REM) Rubriques ]
[(#URL_RUBRIQUE|url_absolue) ][(#REM) Articles ]
[(#SETrecent,[(#VALY-m-d H:i:s|date#VAL"-1 day"|strtotime)])]
[(#URL_ARTICLE|url_absolue) ][(#DATE_MODIF**|>#GETrecent
| ?[(#DATE_MODIF**|date_iso) ])]
[(#REM) Breves ]
[
](#URL_BREVE|url_absolue) -
Google Speech API - Is there a way to determine if the audio has human voice or not ?
20 décembre 2019, par stupid_smaI am making an audio filtering application at work that reads over hundreds of audio files and filters them. So, if the audio has human voice in it, it will accept it and if it does not- it will delete the audio file.
I am using ffmpeg to get the details of the audio and add other filters like size and duration and silence (though it is not very accurate in detecting silence for all audio files.)
My company asked me to try the Google Cloud Speech API to detect if the audio has any human voice in it.
So with this code, some audio files return a Transcript of spoken words in the audio file, but what I need is to determine if a human is speaking or not.
I have considered using hark.js for it but there does not seem to be enough documentation and I am short on time !
Ps. I am an intern and I’m just starting out with programming. I apologize if my question does not make sense or sounds dumb.
# Includes the autoloader for libraries installed with composer
require __DIR__ . '/vendor/autoload.php';
# Imports the Google Cloud client library
use Google\Cloud\Speech\V1\SpeechClient;
use Google\Cloud\Speech\V1\RecognitionAudio;
use Google\Cloud\Speech\V1\RecognitionConfig;
use Google\Cloud\Speech\V1\RecognitionConfig\AudioEncoding;
putenv('GOOGLE_APPLICATION_CREDENTIALS=../../credentials.json');
echo getcwd() . "<br />";
chdir('test-sounds');
echo getcwd() . "<br />";
echo shell_exec('ls -lr');
$fileList = glob('*');
foreach($fileList as $filename){
//echo $filename, '<br />';
# The name of the audio file to transcribe
$audioFile = __DIR__ . '/' . $filename;
# get contents of a file into a string
$content = file_get_contents($audioFile);
# set string as audio content
$audio = (new RecognitionAudio())
->setContent($content);
# The audio file's encoding, sample rate and language
$config = new RecognitionConfig([
'encoding' => AudioEncoding::LINEAR16,
'language_code' => 'ja-JP'
]);
# Instantiates a client
$client = new SpeechClient();
# Detects speech in the audio file
$response = $client->recognize($config, $audio);
# Print most likely transcription
foreach ($response->getResults() as $result) {
$alternatives = $result->getAlternatives();
$mostLikely = $alternatives[0];
$transcript = $mostLikely->getTranscript();
printf('<br />Transcript: %s' . PHP_EOL, $transcript . '<br />');
}
$client->close();
}
?> ```